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