Skip to content

Commit 72ea478

Browse files
committed
fix clippy issues
1 parent abf9e88 commit 72ea478

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/handlers.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,9 +1194,9 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
11941194
}
11951195
};
11961196

1197-
let mut wallet = new_persisted_wallet(network, &mut persister, &wallet_opts)?;
1197+
let mut wallet = new_persisted_wallet(network, &mut persister, wallet_opts)?;
11981198
let result =
1199-
handle_offline_wallet_subcommand(&mut wallet, &wallet_opts, &cli_opts, offline_subcommand.clone())
1199+
handle_offline_wallet_subcommand(&mut wallet, wallet_opts, &cli_opts, offline_subcommand.clone())
12001200
.await?;
12011201
wallet.persist(&mut persister)?;
12021202
result
@@ -1352,6 +1352,7 @@ async fn respond(
13521352
ReplSubCommand::Exit => None,
13531353
};
13541354
if let Some(value) = response {
1355+
let value = serde_json::to_string_pretty(&value).map_err(|e| e.to_string())?;
13551356
writeln!(std::io::stdout(), "{value}").map_err(|e| e.to_string())?;
13561357
std::io::stdout().flush().map_err(|e| e.to_string())?;
13571358
Ok(false)

0 commit comments

Comments
 (0)