mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
delete more display()
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user