History

Apply nightly rustfmt rules.

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

Conor Davis committed 5 years ago

Commit 5e0edba1 parent 19f21a4275 files · +1173 −723Browse files

Showing the changes to git-commitgraph/src/file/commit.rs (1 of 275 files). Show all

Unified · Split

git-commitgraph/src/file/commit.rs+8−6
@@ -1,16 +1,18 @@
1//! Low-level operations on individual commits.1//! Low-level operations on individual commits.
2use crate::{
3 file::{self, File},
4 graph,
5};
6use byteorder::{BigEndian, ByteOrder};
7use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
8use std::{2use std::{
9 convert::TryInto,3 convert::TryInto,
10 fmt::{Debug, Formatter},4 fmt::{Debug, Formatter},
11 slice::Chunks,5 slice::Chunks,
12};6};
13 7
8use byteorder::{BigEndian, ByteOrder};
9use git_hash::SIZE_OF_SHA1_DIGEST as SHA1_SIZE;
10
11use crate::{
12 file::{self, File},
13 graph,
14};
15
14/// The error used in the [`file::commit`][self] module.16/// The error used in the [`file::commit`][self] module.
15#[derive(thiserror::Error, Debug)]17#[derive(thiserror::Error, Debug)]
16#[allow(missing_docs)]18#[allow(missing_docs)]