mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 01:13:23 +00:00
Fix #[allow(dead_code)]
in typeflags
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
1c4e88e648
commit
09ef817b4e
@ -7,9 +7,6 @@ use syn::Expr;
|
||||
|
||||
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.
|
||||
/// 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.
|
||||
|
@ -51,7 +51,6 @@
|
||||
//! ```
|
||||
|
||||
#![feature(proc_macro_diagnostic)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
use syn::parse_macro_input;
|
||||
|
||||
|
@ -145,13 +145,3 @@ impl TypeFlagItem {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user