aboutsummaryrefslogtreecommitdiff
path: root/crates/assists
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-10-20 14:38:11 +0100
committerAleksey Kladov <[email protected]>2020-10-20 14:38:11 +0100
commitaf4e75533f2c071330e740e2fa94b131e3a2b538 (patch)
tree6f517a43814751d8b1ea478b5ed03baf57b4f0b5 /crates/assists
parentbe762ccccd5a86632e60351518528d078785a3e2 (diff)
Rename declaration_name -> display_name
Declaration names sounds like a name of declaration -- something you can use for analysis. It empathically isn't, and is just a label displayed in various UI. It's important not to confuse the two, least we accidentally mix semantics with UI (I believe, there's already a case of this in the FamousDefs at least).
Diffstat (limited to 'crates/assists')
-rw-r--r--crates/assists/src/utils.rs2
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 {