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/tests/immutable/commit.rs (1 of 275 files). Show all
Unified · Split
| @@ -131,10 +131,11 @@ dS3aXZhRfaPqpdsWrMB9fY7ll+oyfw== · 130 unmodified lines | ||
| 131 | 131 | =T+RI |
| 132 | 132 | -----END PGP SIGNATURE-----"; |
| 133 | 133 | mod method { |
| 134 | − use crate::{hex_to_id, immutable::fixture_bytes}; | |
| 135 | 134 | use git_object::immutable::Commit; |
| 136 | 135 | use pretty_assertions::assert_eq; |
| 137 | 136 | |
| 137 | + use crate::{hex_to_id, immutable::fixture_bytes}; | |
| 138 | + | |
| 138 | 139 | #[test] |
| 139 | 140 | fn tree() -> crate::Result { |
| 140 | 141 | let fixture = fixture_bytes("commit", "unsigned.txt"); |
| @@ -146,6 +147,11 @@ mod method { · 5 unmodified lines | ||
| 146 | 147 | } |
| 147 | 148 | |
| 148 | 149 | mod iter { |
| 150 | + use git_object::{ | |
| 151 | + bstr::ByteSlice, | |
| 152 | + immutable::{commit::iter::Token, CommitIter}, | |
| 153 | + }; | |
| 154 | + | |
| 149 | 155 | use crate::{ |
| 150 | 156 | hex_to_id, |
| 151 | 157 | immutable::{ |
| @@ -153,7 +159,6 @@ mod iter { · 1 unmodified line | ||
| 153 | 159 | fixture_bytes, linus_signature, signature, |
| 154 | 160 | }, |
| 155 | 161 | }; |
| 156 | − use git_object::{bstr::ByteSlice, immutable::commit::iter::Token, immutable::CommitIter}; | |
| 157 | 162 | |
| 158 | 163 | #[test] |
| 159 | 164 | fn newline_right_after_signature_multiline_header() -> crate::Result { |
| @@ -302,11 +307,12 @@ mod iter { · 142 unmodified lines | ||
| 302 | 307 | } |
| 303 | 308 | |
| 304 | 309 | mod method { |
| 310 | + use git_object::immutable::CommitIter; | |
| 311 | + | |
| 305 | 312 | use crate::{ |
| 306 | 313 | hex_to_id, |
| 307 | 314 | immutable::{fixture_bytes, signature}, |
| 308 | 315 | }; |
| 309 | − use git_object::immutable::CommitIter; | |
| 310 | 316 | |
| 311 | 317 | #[test] |
| 312 | 318 | fn tree_id() -> crate::Result { |
| @@ -337,12 +343,13 @@ mod iter { · 24 unmodified lines | ||
| 337 | 343 | } |
| 338 | 344 | |
| 339 | 345 | mod from_bytes { |
| 346 | + use git_object::{bstr::ByteSlice, immutable::Commit}; | |
| 347 | + use smallvec::SmallVec; | |
| 348 | + | |
| 340 | 349 | use crate::immutable::{ |
| 341 | 350 | commit::{LONG_MESSAGE, MERGE_TAG, SIGNATURE}, |
| 342 | 351 | fixture_bytes, linus_signature, signature, |
| 343 | 352 | }; |
| 344 | − use git_object::{bstr::ByteSlice, immutable::Commit}; | |
| 345 | − use smallvec::SmallVec; | |
| 346 | 353 | |
| 347 | 354 | #[test] |
| 348 | 355 | fn unsigned() -> crate::Result { |