Skip to content

Commit 0503d5f

Browse files
committed
fix clippy issues
1 parent cf3201d commit 0503d5f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ async fn respond(
10081008
};
10091009
if let Some(value) = response {
10101010
let value = serde_json::to_string_pretty(&value).map_err(|e| e.to_string())?;
1011-
writeln!(std::io::stdout(), "{}", value).map_err(|e| e.to_string())?;
1011+
writeln!(std::io::stdout(), "{value}").map_err(|e| e.to_string())?;
10121012
std::io::stdout().flush().map_err(|e| e.to_string())?;
10131013
Ok(false)
10141014
} else {

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ async fn main() {
2828
let cli_opts: CliOpts = CliOpts::parse();
2929

3030
let network = &cli_opts.network;
31-
debug!("network: {:?}", network);
31+
debug!("network: {network:?}");
3232
if network == &Network::Bitcoin {
3333
warn!("This is experimental software and not currently recommended for use on Bitcoin mainnet, proceed with caution.")
3434
}
3535

3636
match handle_command(cli_opts).await {
37-
Ok(result) => println!("{}", result),
37+
Ok(result) => println!("{result}"),
3838
Err(e) => {
39-
error!("{}", e);
39+
error!("{e}");
4040
std::process::exit(1);
4141
}
4242
}

0 commit comments

Comments
 (0)