From 80a95cb40424eba34469c00258086fcba8cec51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6nauer?= <37108907+DottoDev@users.noreply.github.com> Date: Sun, 29 Jan 2023 19:31:37 +0000 Subject: [PATCH] Clippy (#331) --- src/main.rs | 2 +- src/self_update.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4c5998d0..37f03189 100644 --- a/src/main.rs +++ b/src/main.rs @@ -123,7 +123,7 @@ For more information about this issue see https://askubuntu.com/questions/110969 return result; } } - print_warning(format!("Self update error: {}", e)); + print_warning(format!("Self update error: {e}")); } } } diff --git a/src/self_update.rs b/src/self_update.rs index 95274e99..fe439399 100644 --- a/src/self_update.rs +++ b/src/self_update.rs @@ -31,7 +31,7 @@ pub fn self_update() -> Result<()> { if let UpdateStatus::Updated(release) = &result { println!("\nTopgrade upgraded to {}:\n", release.version); if let Some(body) = &release.body { - println!("{}", body); + println!("{body}"); } } else { println!("Topgrade is up-to-date");