]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/enum_variants.rs
:arrow_up: rust-analyzer
[rust.git] / src / tools / clippy / clippy_lints / src / enum_variants.rs
index c39a909b3ccb990d490f2b87e1e835986bdfcb03..b019d07d53d11fb1318d1be1f082f8493e699a9b 100644 (file)
@@ -202,12 +202,11 @@ fn check_variant(cx: &LateContext<'_>, threshold: u64, def: &EnumDef<'_>, item_n
         cx,
         ENUM_VARIANT_NAMES,
         span,
-        &format!("all variants have the same {}fix: `{}`", what, value),
+        &format!("all variants have the same {what}fix: `{value}`"),
         None,
         &format!(
-            "remove the {}fixes and use full paths to \
-             the variants instead of glob imports",
-            what
+            "remove the {what}fixes and use full paths to \
+             the variants instead of glob imports"
         ),
     );
 }