diff --git a/codex-rs/execpolicy2/src/decision.rs b/codex-rs/execpolicy2/src/decision.rs index 68231358e1..15dc1f711d 100644 --- a/codex-rs/execpolicy2/src/decision.rs +++ b/codex-rs/execpolicy2/src/decision.rs @@ -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"), - } - } -} diff --git a/codex-rs/execpolicy2/src/rule.rs b/codex-rs/execpolicy2/src/rule.rs index a1290a4c25..d2f7186d01 100644 --- a/codex-rs/execpolicy2/src/rule.rs +++ b/codex-rs/execpolicy2/src/rule.rs @@ -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,