Skip to content

Commit

Permalink
Fix unknown lint warnings.
Browse files Browse the repository at this point in the history
`unused_macro_rules` isn't known prior to nightly-2022-05-12, so we
allow unknown lints so we don't receive a spurious warning.
  • Loading branch information
Alexhuszagh committed May 14, 2022
1 parent 8527701 commit effaae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lexical-benchmark/input.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//! Input data reader and random-number generator for benchmarks.
//! This is adapted from fast-float-rust.

#![allow(dead_code, unused_macros, unused_macro_rules)]
// `unused_macro_rules` isn't known until nightly-2022-05-12
#![allow(dead_code, unused_macros, unknown_lints, unused_macro_rules)]

use core::fmt::Debug;
use core::str::FromStr;
Expand Down
3 changes: 1 addition & 2 deletions lexical-write-integer/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
//! of randomized input. Parsers are much trickier to validate.

// `index_unchecked_mut`'s 2nd arm is unused in `compact`.
#![cfg_attr(feature = "compact", allow(unused_macros))]
#![cfg_attr(feature = "compact", allow(unused_macro_rules))]
#![cfg_attr(feature = "compact", allow(unused_macros, unused_macro_rules))]
#![doc(hidden)]

/// Index a buffer, without bounds checking.
Expand Down

0 comments on commit effaae8

Please sign in to comment.