From 36128c170d9d938cfcc52bc851aaed1fab6a2ad9 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Mon, 29 Jun 2020 01:23:39 +0300 Subject: [PATCH] Get rid of unused imports --- crates/ra_assists/src/handlers/change_visibility.rs | 7 ++----- crates/ra_assists/src/handlers/fix_visibility.rs | 6 +----- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/crates/ra_assists/src/handlers/change_visibility.rs b/crates/ra_assists/src/handlers/change_visibility.rs index 237adbc7b3..157c7b6654 100644 --- a/crates/ra_assists/src/handlers/change_visibility.rs +++ b/crates/ra_assists/src/handlers/change_visibility.rs @@ -1,11 +1,8 @@ use ra_syntax::{ ast::{self, NameOwner, VisibilityOwner}, AstNode, - SyntaxKind::{ - ATTR, COMMENT, CONST_DEF, ENUM_DEF, FN_DEF, MODULE, STRUCT_DEF, TRAIT_DEF, VISIBILITY, - WHITESPACE, - }, - SyntaxNode, TextSize, T, + SyntaxKind::{CONST_DEF, ENUM_DEF, FN_DEF, MODULE, STRUCT_DEF, TRAIT_DEF, VISIBILITY}, + T, }; use test_utils::mark; diff --git a/crates/ra_assists/src/handlers/fix_visibility.rs b/crates/ra_assists/src/handlers/fix_visibility.rs index 468f9a77fb..19d4dac5e1 100644 --- a/crates/ra_assists/src/handlers/fix_visibility.rs +++ b/crates/ra_assists/src/handlers/fix_visibility.rs @@ -1,10 +1,6 @@ use hir::{db::HirDatabase, HasSource, HasVisibility, PathResolution}; use ra_db::FileId; -use ra_syntax::{ - ast, AstNode, - SyntaxKind::{ATTR, COMMENT, WHITESPACE}, - SyntaxNode, TextRange, TextSize, -}; +use ra_syntax::{ast, AstNode, TextRange, TextSize}; use crate::{utils::vis_offset, AssistContext, AssistId, Assists};