Warning

"dead_code" — How to Suppress Unused Code Warnings in Rust

Suppress Rust dead_code warnings by adding the #[allow(dead_code)] attribute to the specific item or the entire crate.

Add the #[allow(dead_code)] attribute directly above the unused function, variable, or struct to suppress the warning for that specific item.

#[allow(dead_code)]
fn unused_function() {
    // This will not trigger a warning
}

Alternatively, disable the lint for the entire crate by adding #![allow(dead_code)] at the very top of your src/main.rs file.