]> git.lizzy.rs Git - rust.git/commitdiff
Fix the profiling string
authorKirill Bulatov <mail4score@gmail.com>
Fri, 27 Nov 2020 16:13:02 +0000 (18:13 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Nov 2020 16:13:02 +0000 (18:13 +0200)
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
crates/assists/src/utils/insert_use.rs

index 975a08a207e17cb35c62f38267e71606fafadc55..304adb93d4e20d8efbf3511ccd5555fc7ba0118b 100644 (file)
@@ -95,7 +95,7 @@ pub fn insert_use<'a>(
     path: ast::Path,
     merge: Option<MergeBehaviour>,
 ) -> SyntaxRewriter<'a> {
-    let _p = profile::span("mod_path_to_ast");
+    let _p = profile::span("insert_use");
     let mut rewriter = SyntaxRewriter::default();
     let use_item = make::use_(make::use_tree(path.clone(), None, None, false));
     // merge into existing imports if possible