Of Rust 1.54
Showing the changes to git-object/src/immutable/commit (1 of 38 files). Show all
Unified · Split
| @@ -26,7 +26,7 @@ pub fn message<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(i: &'a [u8] · 25 unmodified lines | |||
| 26 | ))); | 26 | ))); |
| 27 | } | 27 | } |
| 28 | let (i, _) = context("a newline separates headers from the message", tag(NL))(i)?; | 28 | let (i, _) = context("a newline separates headers from the message", tag(NL))(i)?; |
| 29 | Ok((&[], &i.as_bstr())) | 29 | Ok((&[], i.as_bstr())) |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | pub fn commit<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(i: &'a [u8]) -> IResult<&'a [u8], Commit<'_>, E> { | 32 | pub fn commit<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(i: &'a [u8]) -> IResult<&'a [u8], Commit<'_>, E> { |