Skip to content

Commit eae9b86

Browse files
committed
cargo-clippy --fix
1 parent b665071 commit eae9b86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openblas-build/src/build.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,12 @@ impl Configure {
364364

365365
// Copy OpenBLAS sources from this crate to `out_dir`
366366
let root = openblas_root.as_ref();
367-
for entry in WalkDir::new(&root) {
367+
for entry in WalkDir::new(root) {
368368
let entry = entry.expect("Unknown IO error while walkdir");
369369
let dest = out_dir.join(
370370
entry
371371
.path()
372-
.strip_prefix(&root)
372+
.strip_prefix(root)
373373
.expect("Directory entry is not under root"),
374374
);
375375
if dest.exists() {
@@ -400,7 +400,7 @@ impl Configure {
400400
.stdout(unsafe { Stdio::from_raw_fd(out.into_raw_fd()) }) // this works only for unix
401401
.stderr(unsafe { Stdio::from_raw_fd(err.into_raw_fd()) })
402402
.args(&self.make_args())
403-
.args(&["libs", "netlib", "shared"])
403+
.args(["libs", "netlib", "shared"])
404404
.env_remove("TARGET")
405405
.check_call()
406406
{

0 commit comments

Comments
 (0)