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/graph (3 of 275 files). Show all

Unified · Split

3 files
  1. git-commitgraph/src/graph/init.rs +5 −4
  2. git-commitgraph/src/graph/mod.rs +2 −1
  3. git-commitgraph/src/graph/verify.rs +5 −4
git-commitgraph/src/graph/init.rs+5−4
@@ -1,13 +1,14 @@
1−use crate::{
2− file::{self, File},
3− Graph, MAX_COMMITS,
4−};
51 use std::{
62 convert::TryFrom,
73 io::{BufRead, BufReader},
84 path::{Path, PathBuf},
95 };
106
7+use crate::{
8+ file::{self, File},
9+ Graph, MAX_COMMITS,
10+};
11+
1112 /// The error used in the [`graph`][crate::graph] module.
1213 #[derive(thiserror::Error, Debug)]
1314 #[allow(missing_docs)]
git-commitgraph/src/graph/mod.rs+2−1
@@ -3,9 +3,10 @@ mod access; · 2 unmodified lines
33 mod init;
44 pub mod verify;
55
6−use crate::file::File;
76 use std::fmt;
87
8+use crate::file::File;
9+
910 /// A complete commit graph.
1011 ///
1112 /// The data in the commit graph may come from a monolithic `objects/info/commit-graph` file, or it
git-commitgraph/src/graph/verify.rs+5−4
@@ -1,8 +1,4 @@
11 //! Auxiliary types used by graph verification methods.
2−use crate::{
3− file::{self, commit},
4− graph, Graph, GENERATION_NUMBER_MAX,
5−};
62 use std::{
73 cmp::{max, min},
84 collections::BTreeMap,
@@ -10,6 +6,11 @@ use std::{ · 1 unmodified line
106 path::PathBuf,
117 };
128
9+use crate::{
10+ file::{self, commit},
11+ graph, Graph, GENERATION_NUMBER_MAX,
12+};
13+
1314 /// The error used in [`verify_integrity()`][Graph::verify_integrity].
1415 #[derive(thiserror::Error, Debug)]
1516 #[allow(missing_docs)]