fix HintEnum is_none and is_some
This commit is contained in:
parent
0c11248b46
commit
43a6a80bd1
@ -67,9 +67,10 @@ impl<'a> std::fmt::Display for HintEnum<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HintEnum<'a> {
|
impl<'a> HintEnum<'a> {
|
||||||
pub fn is_some(&self) -> bool { !matches!(self, HintEnum::None) }
|
pub fn is_none(&self) -> bool { matches!(self, HintEnum::None) }
|
||||||
|
|
||||||
pub fn is_none(&self) -> bool { !self.is_some() }
|
#[allow(dead_code)]
|
||||||
|
pub fn is_some(&self) -> bool { !self.is_none() }
|
||||||
}
|
}
|
||||||
|
|
||||||
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
|
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user