mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-05 08:17:05 +00:00
token: Enforce the same lint configs
This commit is contained in:
parent
63f64ee8c4
commit
2e68228fee
1 changed files with 15 additions and 0 deletions
|
@ -63,6 +63,21 @@
|
|||
//! }
|
||||
//! ```
|
||||
|
||||
#![deny(
|
||||
asm_sub_register,
|
||||
deprecated,
|
||||
missing_abi,
|
||||
unsafe_code,
|
||||
unused_macros,
|
||||
unused_must_use,
|
||||
unused_unsafe
|
||||
)]
|
||||
#![deny(clippy::from_over_into, clippy::needless_question_mark)]
|
||||
#![cfg_attr(
|
||||
not(debug_assertions),
|
||||
deny(unused_imports, unused_mut, unused_variables)
|
||||
)]
|
||||
|
||||
pub mod util;
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Reference in a new issue