From af4e75533f2c071330e740e2fa94b131e3a2b538 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 20 Oct 2020 15:38:11 +0200 Subject: 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). --- crates/assists/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/assists/src') 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::*; let std_crate = path.next()?; let std_crate = if self .1 - .declaration_name(db) + .display_name(db) .map(|name| name.to_string() == std_crate) .unwrap_or(false) { -- cgit v1.2.3