mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-27 20:29:39 +02:00
chore(lint): suppress dead_code warnings for const-eval functions to address MSRV-specific lint behavior
This commit is contained in:
parent
c29cf69d42
commit
2e456c15d1
3 changed files with 4 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ pub const CORPUS_VERSION: &str = "17";
|
|||
/// is caught at `cargo build` rather than at test time.
|
||||
const _: () = assert_corpus_version_str_matches_u32();
|
||||
|
||||
#[allow(dead_code)] // Called from a const assertion; MSRV lints may miss const-eval uses.
|
||||
const fn assert_corpus_version_str_matches_u32() {
|
||||
let int_val = crate::dynamic::corpus::CORPUS_VERSION;
|
||||
let bytes = CORPUS_VERSION.as_bytes();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue