diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-08-30 22:07:20 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-08-30 22:07:20 -0400 |
commit | f9caf7a2c6ecfcdadffab90cbed8c8620b521e73 (patch) | |
tree | 7f904df7f4c3d0dad28166d611605a73b54d4df8 /src | |
parent | 35dac6a715709f02d18a285b3f274942f1eee83f (diff) |
Clean up
Diffstat (limited to 'src')
-rw-r--r-- | src/delta.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/delta.rs b/src/delta.rs index 9a0afa59..f1ed2313 100644 --- a/src/delta.rs +++ b/src/delta.rs @@ -101,10 +101,9 @@ impl<'a> StateMachine<'a> { { while let Some(Ok(raw_line_bytes)) = lines.next() { self.ingest_line(raw_line_bytes); - let line = &self.line; if self.source == Source::Unknown { - self.source = detect_source(line); + self.source = detect_source(&self.line); } let _ = self.handle_commit_meta_header_line()? |