Skip to content

Commit 9df9e40

Browse files
committed
fix clippy warning (maybe fp)
1 parent 0710a20 commit 9df9e40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clippy_lints/src/rc_clone_in_vec_init.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ fn emit_lint(cx: &LateContext<'_>, symbol: Symbol, macro_call: &MacroCall) {
6161
macro_call.span,
6262
&format!("calling `{symbol_name}::new` in `vec![elem; len]`"),
6363
|diag| {
64-
diag.note(format!("each element will point to the same `{symbol_name}` instance"))
65-
.help(format!(
66-
"if this is intentional, consider extracting the `{symbol_name}` initialization to a variable"
67-
))
68-
.help("or if not, initilaize each element individually");
64+
diag.note(format!("each element will point to the same `{symbol_name}` instance"));
65+
diag.help(format!(
66+
"if this is intentional, consider extracting the `{symbol_name}` initialization to a variable"
67+
));
68+
diag.help("or if not, initilaize each element individually");
6969
},
7070
);
7171
}

0 commit comments

Comments
 (0)