mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Avoid a couple of allocations
This commit is contained in:
parent
ef1177c5b5
commit
42c24ff25f
10 changed files with 61 additions and 60 deletions
|
@ -137,7 +137,7 @@ pub fn resolve_completion_edits(
|
|||
config: &CompletionConfig,
|
||||
position: FilePosition,
|
||||
full_import_path: &str,
|
||||
imported_name: &str,
|
||||
imported_name: String,
|
||||
) -> Option<Vec<TextEdit>> {
|
||||
let ctx = CompletionContext::new(db, position, config)?;
|
||||
let anchor = ctx.name_ref_syntax.as_ref()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue