Showing the changes to git-object/src/commit (1 of 1 file). Show all
Unified · Split
| @@ -6,7 +6,7 @@ use nom::{ · 5 unmodified lines | ||
| 6 | 6 | combinator::{all_consuming, opt}, |
| 7 | 7 | error::{context, ContextError, ParseError}, |
| 8 | 8 | multi::many0, |
| 9 | − IResult, | |
| 9 | + IResult, Parser, | |
| 10 | 10 | }; |
| 11 | 11 | use smallvec::SmallVec; |
| 12 | 12 | |
| @@ -48,7 +48,7 @@ pub fn commit<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>( · 35 unmodified lines | ||
| 48 | 48 | let (i, extra_headers) = context( |
| 49 | 49 | "<field> <single-line|multi-line>", |
| 50 | 50 | many0(alt(( |
| 51 | − |i| parse::any_header_field_multi_line(i).map(|(i, (k, o))| (i, (k.as_bstr(), Cow::Owned(o)))), | |
| 51 | + parse::any_header_field_multi_line.map(|(k, o)| (k.as_bstr(), Cow::Owned(o))), | |
| 52 | 52 | |i| { |
| 53 | 53 | parse::any_header_field(i, is_not(NL)).map(|(i, (k, o))| (i, (k.as_bstr(), Cow::Borrowed(o.as_bstr())))) |
| 54 | 54 | }, |