fix: Partially fix ide_db::search for crate roots

This commit is contained in:
Lukas Wirth
2021-12-20 17:48:47 +01:00
parent 2ca3834c9f
commit 5206946674
4 changed files with 118 additions and 34 deletions

View File

@@ -97,6 +97,10 @@ impl CrateName {
pub fn normalize_dashes(name: &str) -> CrateName {
Self(SmolStr::new(name.replace('-', "_")))
}
pub fn as_smol_str(&self) -> &SmolStr {
&self.0
}
}
impl fmt::Display for CrateName {