From 4f6ca0e081b825031921d10fba3554c119ff29a0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 25 Aug 2020 18:07:25 +0200 Subject: Minor --- crates/assists/src/handlers/extract_struct_from_enum_variant.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/assists/src/handlers/extract_struct_from_enum_variant.rs index c1124b9e2..8ac20210a 100644 --- a/crates/assists/src/handlers/extract_struct_from_enum_variant.rs +++ b/crates/assists/src/handlers/extract_struct_from_enum_variant.rs @@ -1,6 +1,7 @@ use base_db::FileId; use hir::{EnumVariant, Module, ModuleDef, Name}; use ide_db::{defs::Definition, search::Reference, RootDatabase}; +use itertools::Itertools; use rustc_hash::FxHashSet; use syntax::{ algo::find_node_at_offset, @@ -203,13 +204,11 @@ fn list_with_visibility(list: &str) -> String { mod_part.insert_str(index, "pub "); mod_part }) - .collect::>() .join(", ") } #[cfg(test)] mod tests { - use crate::{ tests::{check_assist, check_assist_not_applicable}, utils::FamousDefs, -- cgit v1.2.3