Apply review suggestions
This commit is contained in:
committed by
Florian Diebold
parent
15fc643e05
commit
4496e2a06a
@@ -37,10 +37,6 @@ impl Name {
|
||||
Name(Repr::TupleField(idx))
|
||||
}
|
||||
|
||||
pub fn for_crate_dependency(dep: &ra_db::Dependency) -> Name {
|
||||
Name::new_text(dep.name.clone())
|
||||
}
|
||||
|
||||
/// Shortcut to create inline plain text name
|
||||
const fn new_inline_ascii(text: &[u8]) -> Name {
|
||||
Name::new_text(SmolStr::new_inline_from_ascii(text.len(), text))
|
||||
|
||||
Reference in New Issue
Block a user