Skip to content

Commit

Permalink
Relax checks on unused imports
Browse files Browse the repository at this point in the history
This is definitely worth a warning but should not make builds fail for
users. We deny warnings in CI and sort this out before integrating.

See issue #169 for more details.
  • Loading branch information
sirhcel committed Mar 28, 2024
1 parent 97f8fcc commit 8d94b1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ env:
CARGO_TERM_COLOR: always
# Enable cross compilation for `pkg_config`.
PKG_CONFIG_ALLOW_CROSS: 1
# Deny warnings.
RUSTFLAGS: -D warnings

jobs:
build:
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
#![deny(
missing_docs,
missing_debug_implementations,
missing_copy_implementations,
unused
missing_copy_implementations
)]
// Document feature-gated elements on docs.rs. See
// https://doc.rust-lang.org/rustdoc/unstable-features.html?highlight=doc(cfg#doccfg-recording-what-platforms-or-features-are-required-for-code-to-be-present
Expand Down

0 comments on commit 8d94b1a

Please sign in to comment.