Fix the profiling string

Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
Kirill Bulatov 2020-11-27 18:13:02 +02:00 committed by GitHub
parent b2e6ca46ca
commit 04cd4b17bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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