remove resolved TODO questions

This commit is contained in:
Anatol Ulrich 2021-10-27 15:40:00 +02:00
parent f244ed6a1a
commit 8d3ac328ee
2 changed files with 1 additions and 2 deletions

View File

@ -168,7 +168,6 @@ fn find_definitions(
let v: RenameResult<Vec<(ast::NameLike, Definition)>> = symbols.collect();
match v {
// remove duplicates
// TODO is "unique by `Definition`" correct?
Ok(v) => {
if v.is_empty() {
Err(format_err!("No references found at position"))

View File

@ -58,7 +58,7 @@ pub fn get_source_edit(&self, file_id: FileId) -> Option<&TextEdit> {
pub fn merge(mut self, other: SourceChange) -> SourceChange {
self.extend(other.source_file_edits);
self.extend(other.file_system_edits);
self.is_snippet |= other.is_snippet; // TODO correct?
self.is_snippet |= other.is_snippet;
self
}
}