diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-20 16:09:51 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-20 16:09:51 +0100 |
commit | 1c24f57ef8420e924e904ec481e7c6471f3ddcc8 (patch) | |
tree | c7f1ebcc5979838d1747cf19dd562004916a7274 /crates/assists/src | |
parent | be762ccccd5a86632e60351518528d078785a3e2 (diff) | |
parent | 3b1a648539487c08bc613b6fd6e573b0e0e38948 (diff) |
Merge #6295
6295: More type safety around names r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/assists/src')
-rw-r--r-- | crates/assists/src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/assists/src/utils.rs b/crates/assists/src/utils.rs index b37b0d2b6..4e89a7aed 100644 --- a/crates/assists/src/utils.rs +++ b/crates/assists/src/utils.rs | |||
@@ -406,7 +406,7 @@ pub use prelude::*; | |||
406 | let std_crate = path.next()?; | 406 | let std_crate = path.next()?; |
407 | let std_crate = if self | 407 | let std_crate = if self |
408 | .1 | 408 | .1 |
409 | .declaration_name(db) | 409 | .display_name(db) |
410 | .map(|name| name.to_string() == std_crate) | 410 | .map(|name| name.to_string() == std_crate) |
411 | .unwrap_or(false) | 411 | .unwrap_or(false) |
412 | { | 412 | { |