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-commitgraph/src/graph (3 of 275 files). Show all
Unified · Split
| @@ -1,13 +1,14 @@ | ||
| 1 | −use crate::{ | |
| 2 | − file::{self, File}, | |
| 3 | − Graph, MAX_COMMITS, | |
| 4 | −}; | |
| 5 | 1 | use std::{ |
| 6 | 2 | convert::TryFrom, |
| 7 | 3 | io::{BufRead, BufReader}, |
| 8 | 4 | path::{Path, PathBuf}, |
| 9 | 5 | }; |
| 10 | 6 | |
| 7 | +use crate::{ | |
| 8 | + file::{self, File}, | |
| 9 | + Graph, MAX_COMMITS, | |
| 10 | +}; | |
| 11 | + | |
| 11 | 12 | /// The error used in the [`graph`][crate::graph] module. |
| 12 | 13 | #[derive(thiserror::Error, Debug)] |
| 13 | 14 | #[allow(missing_docs)] |
| @@ -3,9 +3,10 @@ mod access; · 2 unmodified lines | ||
| 3 | 3 | mod init; |
| 4 | 4 | pub mod verify; |
| 5 | 5 | |
| 6 | −use crate::file::File; | |
| 7 | 6 | use std::fmt; |
| 8 | 7 | |
| 8 | +use crate::file::File; | |
| 9 | + | |
| 9 | 10 | /// A complete commit graph. |
| 10 | 11 | /// |
| 11 | 12 | /// The data in the commit graph may come from a monolithic `objects/info/commit-graph` file, or it |
| @@ -1,8 +1,4 @@ | ||
| 1 | 1 | //! Auxiliary types used by graph verification methods. |
| 2 | −use crate::{ | |
| 3 | − file::{self, commit}, | |
| 4 | − graph, Graph, GENERATION_NUMBER_MAX, | |
| 5 | −}; | |
| 6 | 2 | use std::{ |
| 7 | 3 | cmp::{max, min}, |
| 8 | 4 | collections::BTreeMap, |
| @@ -10,6 +6,11 @@ use std::{ · 1 unmodified line | ||
| 10 | 6 | path::PathBuf, |
| 11 | 7 | }; |
| 12 | 8 | |
| 9 | +use crate::{ | |
| 10 | + file::{self, commit}, | |
| 11 | + graph, Graph, GENERATION_NUMBER_MAX, | |
| 12 | +}; | |
| 13 | + | |
| 13 | 14 | /// The error used in [`verify_integrity()`][Graph::verify_integrity]. |
| 14 | 15 | #[derive(thiserror::Error, Debug)] |
| 15 | 16 | #[allow(missing_docs)] |