Skip to content

Commit de4056a

Browse files
committed
Run cargo dev fmt
1 parent bc705c3 commit de4056a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clippy_lints/src/unnecessary_wrap.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ impl<'tcx> LateLintPass<'tcx> for UnnecessaryWrap {
100100
cx,
101101
UNNECESSARY_WRAP,
102102
span,
103-
format!("this function's return value is unnecessarily wrapped by `{}`", return_type).as_str(),
103+
format!(
104+
"this function's return value is unnecessarily wrapped by `{}`",
105+
return_type
106+
)
107+
.as_str(),
104108
|diag| {
105109
let inner_ty = return_ty(cx, hir_id)
106110
.walk()

0 commit comments

Comments
 (0)