diff options
author | Laurențiu Nicola <[email protected]> | 2020-12-29 12:35:49 +0000 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2020-12-29 12:35:49 +0000 |
commit | 42c24ff25f391a1e3662ce226d510aedc9d1f0e4 (patch) | |
tree | 004195234e0409ddc54514a2e8b737ed8e16b74e /crates/ide/src | |
parent | ef1177c5b5a7ced9866025a51c10e4375e2a37fd (diff) |
Avoid a couple of allocations
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 41eb139d1..b3331f03f 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -475,7 +475,7 @@ impl Analysis { | |||
475 | config: &CompletionConfig, | 475 | config: &CompletionConfig, |
476 | position: FilePosition, | 476 | position: FilePosition, |
477 | full_import_path: &str, | 477 | full_import_path: &str, |
478 | imported_name: &str, | 478 | imported_name: String, |
479 | ) -> Cancelable<Vec<TextEdit>> { | 479 | ) -> Cancelable<Vec<TextEdit>> { |
480 | Ok(self | 480 | Ok(self |
481 | .with_db(|db| { | 481 | .with_db(|db| { |