Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tesaguri committed Jul 28, 2024
1 parent a7f7fb3 commit c79f6f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ keywords = ["fmt", "no_std"]
categories = ["no-std", "rust-patterns", "value-formatting"]
exclude = [".*"]

[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = ['cfg(fmt_cmp_semver_exempt)']

[features]
default = ["alloc"]

Expand Down
3 changes: 3 additions & 0 deletions src/int/traits.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// We are using a hack to polyfill the `ilog` methods.
#![allow(clippy::incompatible_msrv)]

/// A trait for integer types that can be compared with [`cmp_int`](super::cmp_int) function.
///
/// This trait is sealed and cannot be implemented outside of `fmt_cmp` crate.
Expand Down

0 comments on commit c79f6f9

Please sign in to comment.