fix: Partially fix ide_db::search for crate roots
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user