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");