Applied via `make rustfmt`, which enables these nightly-only rules: ``` group_imports = "StdExternalCrate" imports_granularity = "Crate" ``` Keep git-config in its original form for now
Showing the changes to git-object/src/immutable/commit (3 of 275 files). Show all
Unified · Split
| @@ -2,10 +2,9 @@ use std::borrow::Cow; · 1 unmodified line | |||
| 2 | 2 | ||
| 3 | use nom::{ | 3 | use nom::{ |
| 4 | branch::alt, | 4 | branch::alt, |
| 5 | bytes::{complete::is_not, complete::tag}, | 5 | bytes::complete::{is_not, tag}, |
| 6 | combinator::{all_consuming, opt}, | 6 | combinator::{all_consuming, opt}, |
| 7 | error::context, | 7 | error::{context, ContextError, ParseError}, |
| 8 | error::{ContextError, ParseError}, | ||
| 9 | multi::many0, | 8 | multi::many0, |
| 10 | IResult, | 9 | IResult, |
| 11 | }; | 10 | }; |
| @@ -1,7 +1,5 @@ | |||
| 1 | use crate::{ | 1 | use std::borrow::Cow; |
| 2 | bstr::ByteSlice, | 2 | |
| 3 | immutable::{commit::decode, object, parse, parse::NL}, | ||
| 4 | }; | ||
| 5 | use bstr::BStr; | 3 | use bstr::BStr; |
| 6 | use git_hash::{oid, ObjectId}; | 4 | use git_hash::{oid, ObjectId}; |
| 7 | use nom::{ | 5 | use nom::{ |
| @@ -10,7 +8,11 @@ use nom::{ · 2 unmodified lines | |||
| 10 | combinator::{all_consuming, opt}, | 8 | combinator::{all_consuming, opt}, |
| 11 | error::context, | 9 | error::context, |
| 12 | }; | 10 | }; |
| 13 | use std::borrow::Cow; | 11 | |
| 12 | use crate::{ | ||
| 13 | bstr::ByteSlice, | ||
| 14 | immutable::{commit::decode, object, parse, parse::NL}, | ||
| 15 | }; | ||
| 14 | 16 | ||
| 15 | #[derive(Copy, Clone)] | 17 | #[derive(Copy, Clone)] |
| 16 | enum SignatureKind { | 18 | enum SignatureKind { |
| @@ -1,6 +1,7 @@ | |||
| 1 | use smallvec::SmallVec; | ||
| 2 | use std::borrow::Cow; | 1 | use std::borrow::Cow; |
| 3 | 2 | ||
| 3 | use smallvec::SmallVec; | ||
| 4 | |||
| 4 | use crate::{immutable::object, BStr}; | 5 | use crate::{immutable::object, BStr}; |
| 5 | 6 | ||
| 6 | mod decode; | 7 | mod decode; |