Skip to content

Commit 13fd884

Browse files
bors[bot]matklad
andauthored
Merge #5881
5881: Minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 33c4afe + 4f6ca0e commit 13fd884

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/assists/src/handlers/extract_struct_from_enum_variant.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use base_db::FileId;
22
use hir::{EnumVariant, Module, ModuleDef, Name};
33
use ide_db::{defs::Definition, search::Reference, RootDatabase};
4+
use itertools::Itertools;
45
use rustc_hash::FxHashSet;
56
use syntax::{
67
algo::find_node_at_offset,
@@ -203,13 +204,11 @@ fn list_with_visibility(list: &str) -> String {
203204
mod_part.insert_str(index, "pub ");
204205
mod_part
205206
})
206-
.collect::<Vec<String>>()
207207
.join(", ")
208208
}
209209

210210
#[cfg(test)]
211211
mod tests {
212-
213212
use crate::{
214213
tests::{check_assist, check_assist_not_applicable},
215214
utils::FamousDefs,

0 commit comments

Comments
 (0)