Skip to content

Commit 4d3fa6d

Browse files
committed
fmt
1 parent c63780d commit 4d3fa6d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/lib.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ impl Build {
23992399

24002400
let target = self.get_target()?;
24012401
let (mut ar, cmd, _any_flags) = self.get_ar()?;
2402-
if target.contains("msvc") && ! cmd.to_str().unwrap().contains("llvm-") {
2402+
if target.contains("msvc") && !cmd.to_str().unwrap().contains("llvm-") {
24032403
// The Rust compiler will look for libfoo.a and foo.lib, but the
24042404
// MSVC linker will also be passed foo.lib, so be sure that both
24052405
// exist for now.
@@ -2482,7 +2482,11 @@ impl Build {
24822482
// NOTE: We add cq here regardless of whether $ARFLAGS/ar_flag have been used because
24832483
// it dictates the _mode_ ar runs in, which the setter of $ARFLAGS/ar_flag can't
24842484
// dictate. See https://github.com/rust-lang/cc-rs/pull/763 for further discussion.
2485-
run(cmd.arg("cq").arg(dst).args(objs), &program, &self.cargo_output)?;
2485+
run(
2486+
cmd.arg("cq").arg(dst).args(objs),
2487+
&program,
2488+
&self.cargo_output,
2489+
)?;
24862490
}
24872491

24882492
Ok(())
@@ -3122,7 +3126,11 @@ impl Build {
31223126
Ok(self.get_base_archiver_variant("RANLIB", "ranlib")?.0)
31233127
}
31243128

3125-
fn get_base_archiver_variant(&self, env: &str, tool: &str) -> Result<(Command, PathBuf), Error> {
3129+
fn get_base_archiver_variant(
3130+
&self,
3131+
env: &str,
3132+
tool: &str,
3133+
) -> Result<(Command, PathBuf), Error> {
31263134
let target = self.get_target()?;
31273135
let mut name = PathBuf::new();
31283136
let tool_opt: Option<Command> = self

0 commit comments

Comments
 (0)