Skip to content

Commit ae83f32

Browse files
committed
Remove unnecessary SourceChange trait impls
1 parent 97a6fa5 commit ae83f32

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

crates/ide-db/src/source_change.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ impl From<IntMap<FileId, TextEdit>> for SourceChange {
121121
}
122122
}
123123

124-
impl From<IntMap<FileId, (TextEdit, Option<SnippetEdit>)>> for SourceChange {
125-
fn from(source_file_edits: IntMap<FileId, (TextEdit, Option<SnippetEdit>)>) -> SourceChange {
126-
SourceChange { source_file_edits, file_system_edits: Vec::new(), is_snippet: false }
127-
}
128-
}
129-
130124
impl FromIterator<(FileId, TextEdit)> for SourceChange {
131125
fn from_iter<T: IntoIterator<Item = (FileId, TextEdit)>>(iter: T) -> Self {
132126
let mut this = SourceChange::default();
@@ -135,16 +129,6 @@ impl FromIterator<(FileId, TextEdit)> for SourceChange {
135129
}
136130
}
137131

138-
impl FromIterator<(FileId, (TextEdit, Option<SnippetEdit>))> for SourceChange {
139-
fn from_iter<T: IntoIterator<Item = (FileId, (TextEdit, Option<SnippetEdit>))>>(
140-
iter: T,
141-
) -> Self {
142-
let mut this = SourceChange::default();
143-
this.extend(iter);
144-
this
145-
}
146-
}
147-
148132
#[derive(Debug, Clone, PartialEq, Eq)]
149133
pub struct SnippetEdit(Vec<(u32, TextRange)>);
150134

0 commit comments

Comments
 (0)