]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/semicolon_if_nothing_returned.rs
Auto merge of #9539 - Jarcho:ice_9445, r=flip1995
[rust.git] / clippy_lints / src / semicolon_if_nothing_returned.rs
index 729694da46d5c2ee6a3098d2b9000495cf4a753d..66638eed998371394176d11b826b5a9a5c74bcc4 100644 (file)
@@ -54,7 +54,7 @@ fn check_block(&mut self, cx: &LateContext<'tcx>, block: &'tcx Block<'tcx>) {
                 }
 
                 let sugg = sugg::Sugg::hir_with_macro_callsite(cx, expr, "..");
-                let suggestion = format!("{0};", sugg);
+                let suggestion = format!("{sugg};");
                 span_lint_and_sugg(
                     cx,
                     SEMICOLON_IF_NOTHING_RETURNED,