mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
minor: fix some clippy lints
This commit is contained in:
parent
2aee17e556
commit
36a5ce9790
23 changed files with 102 additions and 138 deletions
|
@ -2960,9 +2960,9 @@ impl ScopeDef {
|
|||
impl From<ItemInNs> for ScopeDef {
|
||||
fn from(item: ItemInNs) -> Self {
|
||||
match item {
|
||||
ItemInNs::Types(id) => ScopeDef::ModuleDef(id.into()),
|
||||
ItemInNs::Values(id) => ScopeDef::ModuleDef(id.into()),
|
||||
ItemInNs::Macros(id) => ScopeDef::MacroDef(id.into()),
|
||||
ItemInNs::Types(id) => ScopeDef::ModuleDef(id),
|
||||
ItemInNs::Values(id) => ScopeDef::ModuleDef(id),
|
||||
ItemInNs::Macros(id) => ScopeDef::MacroDef(id),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue