Apply review suggestions

This commit is contained in:
Florian Diebold 2020-01-10 18:40:45 +01:00 committed by Florian Diebold
parent 15fc643e05
commit 4496e2a06a
9 changed files with 35 additions and 47 deletions

View file

@ -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))