From 6158304f8b64ef7cdf58b14bc675baf33a27a853 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 6 Nov 2020 22:30:58 +0100 Subject: Simplify --- crates/assists/src/handlers/raw_string.rs | 5 +---- crates/assists/src/handlers/replace_string_with_char.rs | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'crates/assists/src/handlers') diff --git a/crates/assists/src/handlers/raw_string.rs b/crates/assists/src/handlers/raw_string.rs index 7f9f01c9c..4c759cc25 100644 --- a/crates/assists/src/handlers/raw_string.rs +++ b/crates/assists/src/handlers/raw_string.rs @@ -1,9 +1,6 @@ use std::borrow::Cow; -use syntax::{ - ast::{self, HasQuotes, HasStringValue}, - AstToken, TextRange, TextSize, -}; +use syntax::{ast, AstToken, TextRange, TextSize}; use test_utils::mark; use crate::{AssistContext, AssistId, AssistKind, Assists}; diff --git a/crates/assists/src/handlers/replace_string_with_char.rs b/crates/assists/src/handlers/replace_string_with_char.rs index 6d227e883..b4b898846 100644 --- a/crates/assists/src/handlers/replace_string_with_char.rs +++ b/crates/assists/src/handlers/replace_string_with_char.rs @@ -1,8 +1,4 @@ -use syntax::{ - ast::{self, HasStringValue}, - AstToken, - SyntaxKind::STRING, -}; +use syntax::{ast, AstToken, SyntaxKind::STRING}; use crate::{AssistContext, AssistId, AssistKind, Assists}; -- cgit v1.2.3