Skip to content

Commit

Permalink
Add workaround for bad empty_docs lint in stable
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed May 7, 2024
1 parent af6181f commit 081c2bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,22 @@
//! code values are in the expected ranges skipping checks, and risks undefined
//! behavior if they are not.
#![recursion_limit = "128"]

// to build locally with doc_cfg enabled, run:
// `RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features`
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

// warn when functions can safely be given the const keyword, see
// https://rust-lang.github.io/rust-clippy/master/index.html#/missing_const_for_fn
// unfortunately this warns for bindgen-attached functions so we can't leave it
// enabled

// #![warn(clippy::missing_const_for_fn)]

// temporary workaround for https://github.com/rust-lang/rust-clippy/issues/12377
// fix not being in current stable rust 1.78; should be fixed in 1.79
#![allow(clippy::empty_docs)]

pub mod console;
pub mod constants;
pub mod enums;
Expand Down

0 comments on commit 081c2bc

Please sign in to comment.