Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Aug 9, 2024
1 parent c94d2bb commit 21d6656
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check
arguments: --all-features
- uses: EmbarkStudios/cargo-deny-action@v2

publish-check:
name: Publish Check
Expand Down
2 changes: 0 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ targets = [
all-features = true

[advisories]
version = 2
ignore = []

[licenses]
version = 2
allow = ["MIT", "Apache-2.0", "BSD-3-Clause", "ISC"]
exceptions = [
{ allow = ["MPL-2.0"], name = "webpki-roots" },
Expand Down
12 changes: 4 additions & 8 deletions src/unpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,18 +408,14 @@ pub(crate) fn unpack(
Err(e) => return Err(e).transpose(),
};

if let Some(camino::Utf8Component::Normal(first)) = dir
if let Some(camino::Utf8Component::Normal(
"Catalogs" | "bin" | "Source" | "SourceDir",
)) = dir
.strip_prefix(&output_dir)
.ok()
.and_then(|rel| rel.components().next())
{
match first {
"Catalogs" | "bin" | "Source" | "SourceDir" => {
//tracing::debug!("ignoring {}/{}", dir, fname);
return None;
}
_ => {}
}
return None;
}

uncompressed += size;
Expand Down

0 comments on commit 21d6656

Please sign in to comment.