We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97cd46f commit 783992eCopy full SHA for 783992e
clippy_lints/src/methods/or_fun_call.rs
@@ -59,7 +59,7 @@ pub(super) fn check<'tcx>(
59
span_replace_word,
60
&format!("use of `{}` followed by a call to `{}`", name, path),
61
"try this",
62
- format!("unwrap_or_default()"),
+ "unwrap_or_default()".to_string(),
63
Applicability::MachineApplicable,
64
);
65
0 commit comments