From ae83f32ee9d8787e266d439c9a1bca2424093cfd Mon Sep 17 00:00:00 2001 From: DropDemBits Date: Wed, 12 Jul 2023 02:36:37 -0400 Subject: [PATCH] Remove unnecessary `SourceChange` trait impls --- crates/ide-db/src/source_change.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crates/ide-db/src/source_change.rs b/crates/ide-db/src/source_change.rs index 3ff56ae9027..bfccd6b6e19 100644 --- a/crates/ide-db/src/source_change.rs +++ b/crates/ide-db/src/source_change.rs @@ -121,12 +121,6 @@ fn from(source_file_edits: IntMap) -> SourceChange { } } -impl From)>> for SourceChange { - fn from(source_file_edits: IntMap)>) -> SourceChange { - SourceChange { source_file_edits, file_system_edits: Vec::new(), is_snippet: false } - } -} - impl FromIterator<(FileId, TextEdit)> for SourceChange { fn from_iter>(iter: T) -> Self { let mut this = SourceChange::default(); @@ -135,16 +129,6 @@ fn from_iter>(iter: T) -> Self { } } -impl FromIterator<(FileId, (TextEdit, Option))> for SourceChange { - fn from_iter))>>( - iter: T, - ) -> Self { - let mut this = SourceChange::default(); - this.extend(iter); - this - } -} - #[derive(Debug, Clone, PartialEq, Eq)] pub struct SnippetEdit(Vec<(u32, TextRange)>);