Skip to content

Commit 3862101

Browse files
committed
Run rustfmt
1 parent 6b1e6bc commit 3862101

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ impl Config {
511511
(OptLevel::Release, false) => "Release",
512512
(OptLevel::Release, true) => "RelWithDebInfo",
513513
(OptLevel::Size, _) => "MinSizeRel",
514-
}.to_string()
514+
}
515+
.to_string()
515516
});
516517
for &(ref k, ref v) in &self.defines {
517518
let mut os = OsString::from("-D");
@@ -618,7 +619,8 @@ impl Config {
618619
} else {
619620
wchar
620621
}
621-
}).collect::<Vec<_>>();
622+
})
623+
.collect::<Vec<_>>();
622624
ccompiler = OsString::from_wide(&wchars);
623625
}
624626
cmd.arg(ccompiler);
@@ -740,7 +742,10 @@ impl Config {
740742
),
741743
Err(msg) => panic!(msg),
742744
};
743-
if ["i686", "x86_64", "thumbv7a", "aarch64"].iter().any(|t| target.contains(t)) {
745+
if ["i686", "x86_64", "thumbv7a", "aarch64"]
746+
.iter()
747+
.any(|t| target.contains(t))
748+
{
744749
base.to_string()
745750
} else {
746751
panic!("unsupported msvc target: {}", target);

0 commit comments

Comments
 (0)