mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Apply review suggestions
This commit is contained in:
parent
15fc643e05
commit
4496e2a06a
9 changed files with 35 additions and 47 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue