diff options
author | Aleksey Kladov <[email protected]> | 2020-11-06 21:30:58 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-06 21:30:58 +0000 |
commit | 6158304f8b64ef7cdf58b14bc675baf33a27a853 (patch) | |
tree | 0567887ad19474aee4c9a70f46b1ca2c48ce7ddd /crates/assists/src/handlers | |
parent | 5ba4f949c23dcf53f34995c90b7c01e6c641b1f0 (diff) |
Simplify
Diffstat (limited to 'crates/assists/src/handlers')
-rw-r--r-- | crates/assists/src/handlers/raw_string.rs | 5 | ||||
-rw-r--r-- | crates/assists/src/handlers/replace_string_with_char.rs | 6 |
2 files changed, 2 insertions, 9 deletions
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 @@ | |||
1 | use std::borrow::Cow; | 1 | use std::borrow::Cow; |
2 | 2 | ||
3 | use syntax::{ | 3 | use syntax::{ast, AstToken, TextRange, TextSize}; |
4 | ast::{self, HasQuotes, HasStringValue}, | ||
5 | AstToken, TextRange, TextSize, | ||
6 | }; | ||
7 | use test_utils::mark; | 4 | use test_utils::mark; |
8 | 5 | ||
9 | use crate::{AssistContext, AssistId, AssistKind, Assists}; | 6 | 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 @@ | |||
1 | use syntax::{ | 1 | use syntax::{ast, AstToken, SyntaxKind::STRING}; |
2 | ast::{self, HasStringValue}, | ||
3 | AstToken, | ||
4 | SyntaxKind::STRING, | ||
5 | }; | ||
6 | 2 | ||
7 | use crate::{AssistContext, AssistId, AssistKind, Assists}; | 3 | use crate::{AssistContext, AssistId, AssistKind, Assists}; |
8 | 4 | ||