Skip to content

Commit

Permalink
Fix some warnings with latest cargo-deny
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Nov 22, 2023
1 parent e905db9 commit 4e48ed5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}-cargo-deny-0-12-2-cargo-fuzz-0-11-0-just-1-8-0
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }}

- name: Check for forbidden words
run: "! grep --include='*.rs' -RE 'to_be_bytes|from_be_bytes|dbg!' ."
Expand All @@ -48,7 +48,7 @@ jobs:

- name: Install cargo-deny
if: steps.rust-cache.outputs.cache-hit != 'true'
run: cargo install --force --version 0.12.2 cargo-deny --locked
run: rustup run --install 1.70 cargo install --force --version 0.14.3 cargo-deny --locked

- name: Install cargo-fuzz
if: steps.rust-cache.outputs.cache-hit != 'true'
Expand Down
4 changes: 2 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ unlicensed = "deny"
allow = [
"MIT",
# "BSD-2-Clause",
"BSD-3-Clause",
# "BSD-3-Clause",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
]
Expand Down Expand Up @@ -107,7 +107,7 @@ exceptions = [
# Each entry is the crate and version constraint, and its specific allow
# list
{ allow = ["Unicode-DFS-2016"], name = "unicode-ident", version = "*" }, # Used only by comfy-table in the benchmarks
{ allow = ["ISC"], name = "libloading", version = "*" }, # Used only by rocksdb in the benchmarks
# { allow = ["ISC"], name = "libloading", version = "*" }, # Used only by rocksdb in the benchmarks
]

# Some crates don't have (easily) machine readable licensing information,
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build: pre
cargo doc

pre:
cargo deny check licenses
cargo deny --all-features check licenses
cargo fmt --all -- --check
cargo clippy --all --all-targets

Expand Down

0 comments on commit 4e48ed5

Please sign in to comment.