Skip to content

Commit

Permalink
style: Happify clippy
Browse files Browse the repository at this point in the history
Remove `.to_string()` call in string formatter for object that
implements `Display`.

Co-authored-by: Clippy
  • Loading branch information
aszepieniec committed Nov 22, 2024
1 parent 5b74c61 commit 1860289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/dashboard_src/send_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl SendScreen {
*reset_me.lock().await = ResetType::Form;
}
Err(e) => {
*notice_arc.lock().await = format!("send error. {}", e.to_string());
*notice_arc.lock().await = format!("send error. {}", e);
*reset_me.lock().await = ResetType::Notice;
}
}
Expand Down

0 comments on commit 1860289

Please sign in to comment.