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

Unified · Split

3 files
  1. git-diff/src/tree/changes.rs +6 −4
  2. git-diff/src/tree/mod.rs +2 −1
  3. git-diff/src/tree/recorder.rs +4 −2
git-diff/src/tree/changes.rs+6−4
@@ -1,11 +1,13 @@
1+use std::{borrow::BorrowMut, collections::VecDeque};
2+
3+use git_hash::{oid, ObjectId};
4+use git_object::immutable;
5+use quick_error::quick_error;
6+
17 use crate::{
28 tree,
39 tree::{visit::Change, TreeInfoPair},
410 };
5−use git_hash::{oid, ObjectId};
6−use git_object::immutable;
7−use quick_error::quick_error;
8−use std::{borrow::BorrowMut, collections::VecDeque};
911
1012 quick_error! {
1113 /// The error returned by [tree::Changes::needed_to_obtain()].
git-diff/src/tree/mod.rs+2−1
@@ -1,6 +1,7 @@
1+use std::collections::VecDeque;
2+
13 use git_hash::ObjectId;
24 use git_object::immutable;
3−use std::collections::VecDeque;
45
56 /// The state required to visit [Changes] to be instantiated with `State::default()`.
67 #[derive(Default, Clone)]
git-diff/src/tree/recorder.rs+4−2
@@ -1,10 +1,12 @@
1−use crate::tree::visit;
1+use std::collections::{BTreeMap, VecDeque};
2+
23 use git_hash::ObjectId;
34 use git_object::{
45 bstr::{BStr, BString, ByteSlice, ByteVec},
56 tree,
67 };
7−use std::collections::{BTreeMap, VecDeque};
8+
9+use crate::tree::visit;
810
911 /// A Change as observed by a call to [`visit(…)`][visit::Visit::visit()], enhanced with the path affected by the change.
1012 /// Its similar to [visit::Change] but includes the path that changed.