delete more display()

This commit is contained in:
kevin zhao
2025-11-12 18:58:32 -05:00
parent 9bf0c066d9
commit 83cfac9442
2 changed files with 0 additions and 24 deletions

View File

@@ -25,13 +25,3 @@ impl Decision {
}
}
}
impl std::fmt::Display for Decision {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Allow => f.write_str("allow"),
Self::Prompt => f.write_str("prompt"),
Self::Forbidden => f.write_str("forbidden"),
}
}
}

View File

@@ -71,20 +71,6 @@ impl RuleMatch {
}
}
impl std::fmt::Display for RuleMatch {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::PrefixRuleMatch {
matched_prefix,
decision,
} => write!(
f,
"prefixRuleMatch {{ matchedPrefix: {matched_prefix:?}, decision: {decision} }}"
),
}
}
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct PrefixRule {
pub pattern: PrefixPattern,