]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/unnecessary_wrap.rs
Run `cargo dev fmt`
[rust.git] / clippy_lints / src / unnecessary_wrap.rs
index db51ee681ef2dd6273ab0b0efe8b7dcb78b83d03..fc1a33fc6cd7f5887f355e36bda7433fafe019e1 100644 (file)
@@ -100,7 +100,11 @@ fn check_fn(
                 cx,
                 UNNECESSARY_WRAP,
                 span,
-                format!("this function's return value is unnecessarily wrapped by `{}`", return_type).as_str(),
+                format!(
+                    "this function's return value is unnecessarily wrapped by `{}`",
+                    return_type
+                )
+                .as_str(),
                 |diag| {
                     let inner_ty = return_ty(cx, hir_id)
                         .walk()