History

[object #177] refactor

Sebastian Thiel committed 5 years ago

Commit 472e13b1 parent 60b93658 files · +6 −23Browse files

Showing the changes to git-object/src/commit (2 of 8 files). Show all

Unified · Split

2 files
  1. git-object/src/commit/decode.rs +1 −4
  2. git-object/src/commit/ref_iter.rs +1 −6
git-object/src/commit/decode.rs+1−4
@@ -10,10 +10,7 @@ use nom::{ · 9 unmodified lines
10};10};
11use smallvec::SmallVec;11use smallvec::SmallVec;
12 12
13use crate::{13use crate::{parse, parse::NL, BStr, ByteSlice, CommitRef};
14 immutable::{parse, parse::NL},
15 BStr, ByteSlice, CommitRef,
16};
17 14
18pub fn message<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(i: &'a [u8]) -> IResult<&'a [u8], &'a BStr, E> {15pub fn message<'a, E: ParseError<&'a [u8]> + ContextError<&'a [u8]>>(i: &'a [u8]) -> IResult<&'a [u8], &'a BStr, E> {
19 if i.is_empty() {16 if i.is_empty() {
git-object/src/commit/ref_iter.rs+1−6
@@ -9,12 +9,7 @@ use nom::{ · 8 unmodified lines
9 error::context,9 error::context,
10};10};
11 11
12use crate::{12use crate::{bstr::ByteSlice, commit::decode, immutable::object, parse, parse::NL, CommitRefIter};
13 bstr::ByteSlice,
14 commit::decode,
15 immutable::{object, parse, parse::NL},
16 CommitRefIter,
17};
18 13
19#[derive(Copy, Clone)]14#[derive(Copy, Clone)]
20pub(crate) enum SignatureKind {15pub(crate) enum SignatureKind {