Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_ssr/src/replacing.rs')
-rw-r--r--crates/ide_ssr/src/replacing.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/crates/ide_ssr/src/replacing.rs b/crates/ide_ssr/src/replacing.rs
index 6d21bad1eb..1726d5701a 100644
--- a/crates/ide_ssr/src/replacing.rs
+++ b/crates/ide_ssr/src/replacing.rs
@@ -1,14 +1,15 @@
//! Code for applying replacement templates for matches that have previously been found.
-use crate::fragments;
-use crate::{resolving::ResolvedRule, Match, SsrMatches};
+use ide_db::{FxHashMap, FxHashSet};
use itertools::Itertools;
-use rustc_hash::{FxHashMap, FxHashSet};
-use syntax::ast::{self, AstNode, AstToken};
-use syntax::{SyntaxElement, SyntaxKind, SyntaxNode, SyntaxToken, TextRange, TextSize};
-
+use syntax::{
+ ast::{self, AstNode, AstToken},
+ SyntaxElement, SyntaxKind, SyntaxNode, SyntaxToken, TextRange, TextSize,
+};
use text_edit::TextEdit;
+use crate::{fragments, resolving::ResolvedRule, Match, SsrMatches};
+
/// Returns a text edit that will replace each match in `matches` with its corresponding replacement
/// template. Placeholders in the template will have been substituted with whatever they matched to
/// in the original code.