diff options
Diffstat (limited to 'src/delta.rs')
-rw-r--r-- | src/delta.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/delta.rs b/src/delta.rs index 81871068..7d52eae1 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -36,7 +36,10 @@ pub enum Source { impl State { fn is_in_hunk(&self) -> bool { - matches!(*self, State::HunkHeader | State::HunkZero | State::HunkMinus(_) | State::HunkPlus(_)) + matches!( + *self, + State::HunkHeader | State::HunkZero | State::HunkMinus(_) | State::HunkPlus(_) + ) } } @@ -223,6 +226,7 @@ impl<'a> StateMachine<'a> { Ok(()) } + #[allow(clippy::unnecessary_wraps)] fn handle_file_meta_diff_line(&mut self) -> std::io::Result<bool> { self.painter.paint_buffered_minus_and_plus_lines(); self.state = State::FileMeta; |