Skip to content

Commit 01f6c76

Browse files
committed
fix clippy issues
1 parent 17a798c commit 01f6c76

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
@@ -1201,9 +1201,9 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
12011201
}
12021202
};
12031203

1204-
let mut wallet = new_persisted_wallet(network, &mut persister, &wallet_opts)?;
1204+
let mut wallet = new_persisted_wallet(network, &mut persister, wallet_opts)?;
12051205
let result =
1206-
handle_offline_wallet_subcommand(&mut wallet, &wallet_opts, &cli_opts, offline_subcommand.clone())
1206+
handle_offline_wallet_subcommand(&mut wallet, wallet_opts, &cli_opts, offline_subcommand.clone())
12071207
.await?;
12081208
wallet.persist(&mut persister)?;
12091209
result
@@ -1359,6 +1359,7 @@ async fn respond(
13591359
ReplSubCommand::Exit => None,
13601360
};
13611361
if let Some(value) = response {
1362+
let value = serde_json::to_string_pretty(&value).map_err(|e| e.to_string())?;
13621363
writeln!(std::io::stdout(), "{value}").map_err(|e| e.to_string())?;
13631364
std::io::stdout().flush().map_err(|e| e.to_string())?;
13641365
Ok(false)

0 commit comments

Comments
 (0)