From 04cd4b17bb04031ecf7c7e9b734d22ea74d8f114 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 27 Nov 2020 18:13:02 +0200 Subject: Fix the profiling string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Laurențiu Nicola --- crates/assists/src/utils/insert_use.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/assists') diff --git a/crates/assists/src/utils/insert_use.rs b/crates/assists/src/utils/insert_use.rs index 975a08a20..304adb93d 100644 --- a/crates/assists/src/utils/insert_use.rs +++ b/crates/assists/src/utils/insert_use.rs @@ -95,7 +95,7 @@ pub fn insert_use<'a>( path: ast::Path, merge: Option, ) -> 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 -- cgit v1.2.3