move rename to a new mod

This commit is contained in:
gfreezy 2019-01-16 21:39:01 +08:00 committed by Aleksey Kladov
parent bc0f79f74a
commit 5c8cb56506
8 changed files with 233 additions and 105 deletions

View file

@ -23,6 +23,7 @@ mod hover;
mod call_info;
mod syntax_highlighting;
mod parent_module;
mod rename;
use std::{fmt, sync::Arc};
@ -464,7 +465,7 @@ impl Analysis {
&self,
position: FilePosition,
new_name: &str,
) -> Cancelable<Vec<SourceFileEdit>> {
) -> Cancelable<Option<SourceChange>> {
self.with_db(|db| db.rename(position, new_name))
}