Skip to content

Commit 131587f

Browse files
committed
fix clippy issues
1 parent 04f0687 commit 131587f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/handlers.rs

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

1223-
let mut wallet = new_persisted_wallet(network, &mut persister, &wallet_opts)?;
1223+
let mut wallet = new_persisted_wallet(network, &mut persister, wallet_opts)?;
12241224
let result =
1225-
handle_offline_wallet_subcommand(&mut wallet, &wallet_opts, &cli_opts, offline_subcommand.clone())
1225+
handle_offline_wallet_subcommand(&mut wallet, wallet_opts, &cli_opts, offline_subcommand.clone())
12261226
.await?;
12271227
wallet.persist(&mut persister)?;
12281228
result
@@ -1378,6 +1378,7 @@ async fn respond(
13781378
ReplSubCommand::Exit => None,
13791379
};
13801380
if let Some(value) = response {
1381+
let value = serde_json::to_string_pretty(&value).map_err(|e| e.to_string())?;
13811382
writeln!(std::io::stdout(), "{value}").map_err(|e| e.to_string())?;
13821383
std::io::stdout().flush().map_err(|e| e.to_string())?;
13831384
Ok(false)

0 commit comments

Comments
 (0)