Run cargo dev fmt

This commit is contained in:
Hirochika Matsumoto 2020-10-12 19:37:27 +09:00
parent 1bdac87128
commit 8392bc7946

View 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()