Skip to content

Commit 60db94c

Browse files
author
Stefan Hoelzl
committed
fix format issues
1 parent 40885df commit 60db94c

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

src/cargo/sources/path.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,12 @@ impl<'cfg> PathSource<'cfg> {
356356
return Ok(());
357357
}
358358
// Skip dotfile directories.
359-
if path.file_name().and_then(|s| s.to_str()).map(|s| s.starts_with('.')) == Some(true) {
359+
if path
360+
.file_name()
361+
.and_then(|s| s.to_str())
362+
.map(|s| s.starts_with('.'))
363+
== Some(true)
364+
{
360365
return Ok(());
361366
}
362367

tests/testsuite/package.rs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,11 +1460,17 @@ src/main.rs
14601460
)
14611461
.run();
14621462

1463-
let f = File::open(&p.root().join("target/package/foo-0.0.1.crate")).unwrap();
1464-
validate_crate_contents(
1465-
f,
1466-
"foo-0.0.1.crate",
1467-
&[".hidden", "Cargo.lock", "Cargo.toml", "Cargo.toml.orig", "src/main.rs"],
1468-
&[],
1469-
);
1470-
}
1463+
let f = File::open(&p.root().join("target/package/foo-0.0.1.crate")).unwrap();
1464+
validate_crate_contents(
1465+
f,
1466+
"foo-0.0.1.crate",
1467+
&[
1468+
".hidden",
1469+
"Cargo.lock",
1470+
"Cargo.toml",
1471+
"Cargo.toml.orig",
1472+
"src/main.rs",
1473+
],
1474+
&[],
1475+
);
1476+
}

0 commit comments

Comments
 (0)