Skip to content

Commit 100dd77

Browse files
Borja Munoz Fernandezsylvestre
authored andcommitted
lints format &
1 parent 6cb114f commit 100dd77

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/compiler/c.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use crate::dist;
2525
use crate::dist::pkg;
2626
use crate::mock_command::CommandCreatorSync;
2727
use crate::util::{
28-
decode_path, encode_path, hash_all, Digest, HashToDigest, MetadataCtimeExt, OsStrExt,
29-
TimeMacroFinder, Timestamp,
28+
Digest, HashToDigest, MetadataCtimeExt, TimeMacroFinder, Timestamp, decode_path, encode_path,
29+
hash_all,
3030
};
3131
use async_trait::async_trait;
3232
use fs_err as fs;
@@ -44,8 +44,8 @@ use std::sync::Arc;
4444

4545
use crate::errors::*;
4646

47-
use super::preprocessor_cache::PreprocessorCacheEntry;
4847
use super::CacheControl;
48+
use super::preprocessor_cache::PreprocessorCacheEntry;
4949

5050
/// A generic implementation of the `Compiler` trait for C/C++ compilers.
5151
#[derive(Clone)]
@@ -1595,10 +1595,8 @@ mod test {
15951595
const PREPROCESSED: &[u8] = b"hello world";
15961596

15971597
let args = ovec!["arg1", "arg2", "arg3"];
1598-
let mut args_with_non_hashable: Vec<OsString> = NON_HASHABLE_ARGS
1599-
.iter()
1600-
.map(OsString::from)
1601-
.collect();
1598+
let mut args_with_non_hashable: Vec<OsString> =
1599+
NON_HASHABLE_ARGS.iter().map(OsString::from).collect();
16021600

16031601
args_with_non_hashable.extend(args.clone());
16041602
assert_eq!(

0 commit comments

Comments
 (0)