Skip to content

Commit 10b6f85

Browse files
committed
chore: clippy
1 parent 10b14a8 commit 10b6f85

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/ide-assists/src/handlers/auto_import.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ pub(crate) fn auto_import_all(acc: &mut Assists, ctx: &AssistContext<'_>) -> Opt
254254
all_insert_use_actions.push((chosen_import.clone(), scope, range, edition));
255255
}
256256

257-
let group_label = GroupLabel("Import all missing items".to_string());
257+
let group_label = GroupLabel("Import all missing items".to_owned());
258258
let assist_id = AssistId("auto_import_all", AssistKind::QuickFix);
259259
let label = "Import all missing items";
260260

261261
// add the same import all action in all the places where we need import
262262
for (_, scope, range, _) in &all_insert_use_actions {
263-
acc.add_group(&group_label, assist_id, label, range.clone(), |builder| {
263+
acc.add_group(&group_label, assist_id, label, *range, |builder| {
264264
let path_alias = gen_insert_args(
265265
scope,
266266
importable_nodes.iter().map(|(import_assets, _)| import_assets),
@@ -1914,7 +1914,7 @@ fn main() {
19141914
Foo;
19151915
Bar;
19161916
}
1917-
",// FIXME(discord9): the resulting import have a strange whitespace after newline of the new import
1917+
", // FIXME(discord9): the resulting import have a strange whitespace after newline of the new import
19181918
r"
19191919
mod foo { pub struct Foo; }
19201920
mod bar {
@@ -1930,7 +1930,8 @@ fn main() {
19301930
Foo;
19311931
Bar;
19321932
}
1933-
","Import all missing items"
1933+
",
1934+
"Import all missing items",
19341935
)
19351936
}
19361937

0 commit comments

Comments
 (0)