Avoid double text edits when renaming mod declaration

This commit is contained in:
Lukas Wirth 2021-03-10 15:49:01 +01:00
parent a9b1e5cde1
commit 3af69b5359
4 changed files with 15 additions and 2 deletions

View file

@ -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()),
}
}