Fix #[allow(dead_code)] in typeflags

This commit is contained in:
Ruihan Li
2025-01-24 17:41:59 +08:00
committed by Tate, Hongliang Tian
parent 1c4e88e648
commit 09ef817b4e
3 changed files with 0 additions and 14 deletions

View File

@ -7,9 +7,6 @@ use syn::Expr;
use crate::type_flag::TypeFlagDef; use crate::type_flag::TypeFlagDef;
const EMPTY_SET_NAME: &str = "::typeflags_util::Nil";
const SET_NAME: &str = "::typeflags_util::Cons";
/// A flagSet represent the combination of different flag item. /// A flagSet represent the combination of different flag item.
/// e.g. [Read, Write], [Read], [] are all flag sets. /// e.g. [Read, Write], [Read], [] are all flag sets.
/// The order of flagItem does not matters. So flag sets with same sets of items should be viewed as the same set. /// The order of flagItem does not matters. So flag sets with same sets of items should be viewed as the same set.

View File

@ -51,7 +51,6 @@
//! ``` //! ```
#![feature(proc_macro_diagnostic)] #![feature(proc_macro_diagnostic)]
#![allow(dead_code)]
use syn::parse_macro_input; use syn::parse_macro_input;

View File

@ -145,13 +145,3 @@ impl TypeFlagItem {
self.value.clone() self.value.clone()
} }
} }
impl TypeFlagDef {
/// Debug use. Print all item's name.
pub fn debug(&self) {
println!("{}", self.ident);
for type_flag_item in &self.items {
println!("{}", type_flag_item.ident);
}
}
}