Remove ChainBehavior.

This commit is contained in:
Tom Alexander
2023-04-18 20:44:58 -04:00
parent 35eff51d1b
commit a2051aca4f
8 changed files with 7 additions and 20 deletions

View File

@@ -158,23 +158,10 @@ pub struct ExitMatcherNode<'r> {
pub class: ExitClass,
}
#[derive(Clone)]
pub enum ChainBehavior<'r> {
AndParent(Option<&'r Matcher>),
IgnoreParent(Option<&'r Matcher>),
}
impl<'r> std::fmt::Debug for ExitMatcherNode<'r> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExitMatcherNode");
// match self {
// ChainBehavior::AndParent(_) => {
// formatter = formatter.field("type", &"AndParent");
// }
// ChainBehavior::IgnoreParent(_) => {
// formatter = formatter.field("type", &"IgnoreParent");
// }
// };
formatter.field("class", &self.class.to_string());
formatter.finish()
}
}