delete more display()

This commit is contained in:
kevin zhao
2025-11-13 22:07:44 -05:00
parent 9bf0c066d9
commit 83cfac9442
2 changed files with 0 additions and 24 deletions
-10
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"),
}
}
}
-14
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,