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

@ -19,7 +19,6 @@ use crate::{
CrateId, db, Diagnostic, FileId, FilePosition, FileRange, FileSystemEdit,
Query, RootChange, SourceChange, SourceFileEdit,
symbol_index::{FileSymbol, LibrarySymbolsQuery},
rename::rename
};
impl db::RootDatabase {
@ -232,10 +231,6 @@ impl db::RootDatabase {
.collect()
}
pub(crate) fn rename(&self, position: FilePosition, new_name: &str) -> Option<SourceChange> {
rename(self, position, new_name)
}
pub(crate) fn index_resolve(&self, name_ref: &ast::NameRef) -> Vec<FileSymbol> {
let name = name_ref.text();
let mut query = Query::new(name.to_string());