fix comments

This commit is contained in:
gfreezy 2019-01-17 19:57:24 +08:00 committed by Aleksey Kladov
parent 5c8cb56506
commit 6ab6d1eaa0
4 changed files with 5 additions and 40 deletions

View file

@ -466,7 +466,7 @@ impl Analysis {
position: FilePosition,
new_name: &str,
) -> Cancelable<Option<SourceChange>> {
self.with_db(|db| db.rename(position, new_name))
self.with_db(|db| rename::rename(db, position, new_name))
}
fn with_db<F: FnOnce(&db::RootDatabase) -> T + std::panic::UnwindSafe, T>(