mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Avoid double text edits when renaming mod declaration
This commit is contained in:
parent
a9b1e5cde1
commit
3af69b5359
4 changed files with 15 additions and 2 deletions
|
@ -305,7 +305,6 @@ impl ModuleDef {
|
|||
ModuleDef::Module(it) => it.name(db),
|
||||
ModuleDef::Const(it) => it.name(db),
|
||||
ModuleDef::Static(it) => it.name(db),
|
||||
|
||||
ModuleDef::BuiltinType(it) => Some(it.name()),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue