Skip to content

Commit e804096

Browse files
author
Borja Munoz Fernandez
committed
lints format &
1 parent 4f9e375 commit e804096

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)]
@@ -1586,10 +1586,8 @@ mod test {
15861586
const PREPROCESSED: &[u8] = b"hello world";
15871587

15881588
let args = ovec!["arg1", "arg2", "arg3"];
1589-
let mut args_with_non_hashable: Vec<OsString> = NON_HASHABLE_ARGS
1590-
.iter()
1591-
.map(OsString::from)
1592-
.collect();
1589+
let mut args_with_non_hashable: Vec<OsString> =
1590+
NON_HASHABLE_ARGS.iter().map(OsString::from).collect();
15931591

15941592
args_with_non_hashable.extend(args.clone());
15951593
assert_eq!(

0 commit comments

Comments
 (0)