merge checks for single hint

This commit is contained in:
Simon Gardling
2022-04-12 10:06:15 -04:00
parent 2e0569fe2e
commit d2298e69a2
2 changed files with 5 additions and 7 deletions

View File

@@ -72,6 +72,7 @@ impl<'a> HintEnum<'a> {
#[allow(dead_code)]
pub fn is_some(&self) -> bool { !self.is_none() }
#[allow(dead_code)]
pub fn is_single(&self) -> bool {
match self {
HintEnum::Single(_) => true,