Skip to content

Commit 5cd372e

Browse files
dswijbotahamec
authored andcommitted
apply uninlined-format-args suggestion
1 parent a3cfdd8 commit 5cd372e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unnecessary_box_returns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl LateLintPass<'_> for UnnecessaryBoxReturns {
7070
cx,
7171
UNNECESSARY_BOX_RETURNS,
7272
return_ty_hir.span,
73-
format!("function returns `Box<{0}>` when `{0}` implements `Sized`", boxed_ty).as_str(),
73+
format!("function returns `Box<{boxed_ty}>` when `{boxed_ty}` implements `Sized`").as_str(),
7474
"change the return type to",
7575
boxed_ty.to_string(),
7676
// the return value also needs to be changed, so this can't be MachineApplicable

0 commit comments

Comments
 (0)