Skip to content

Commit

Permalink
refactor: remove unused Display impl for Delta
Browse files Browse the repository at this point in the history
  • Loading branch information
altsem committed Feb 10, 2024
1 parent 528b2ae commit 55c5bed
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/git/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@ pub(crate) struct Delta {
pub hunks: Vec<Hunk>,
}

// TODO Is this needed?
impl Display for Delta {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(&self.file_header)?;
for hunk in self.hunks.iter() {
f.write_str(&hunk.to_string())?;
}

Ok(())
}
}

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub(crate) struct Hunk {
pub file_header: String,
Expand Down

0 comments on commit 55c5bed

Please sign in to comment.