Showing the changes to git-object/src/immutable/commit.rs (1 of 1 file). Show all
Unified · Split
| @@ -75,7 +75,6 @@ fn parse_message(i: &[u8]) -> IResult<&[u8], &BStr, decode::Error> { · 74 unmodified lines | |||
| 75 | ))); | 75 | ))); |
| 76 | } | 76 | } |
| 77 | let (i, _) = tag(NL)(i).map_err(decode::Error::context("a newline separates headers from the message"))?; | 77 | let (i, _) = tag(NL)(i).map_err(decode::Error::context("a newline separates headers from the message"))?; |
| 78 | debug_assert!(!i.is_empty()); | ||
| 79 | Ok((&[], &i.as_bstr())) | 78 | Ok((&[], &i.as_bstr())) |
| 80 | } | 79 | } |
| 81 | 80 | ||