Skip to content

Commit 7055dc8

Browse files
committed
refactor (#198)
1 parent b439186 commit 7055dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-object/src/commit/decode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use nom::{
66
combinator::{all_consuming, opt},
77
error::{context, ContextError, ParseError},
88
multi::many0,
9-
IResult,
9+
IResult, Parser,
1010
};
1111
use smallvec::SmallVec;
1212

@@ -48,7 +48,7 @@ pub fn commit<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(
4848
let (i, extra_headers) = context(
4949
"<field> <single-line|multi-line>",
5050
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))),
5252
|i| {
5353
parse::any_header_field(i, is_not(NL)).map(|(i, (k, o))| (i, (k.as_bstr(), Cow::Borrowed(o.as_bstr()))))
5454
},

0 commit comments

Comments
 (0)