mirror of
https://github.com/openai/codex.git
synced 2026-05-04 05:11:37 +03:00
cleanup and prettify
This commit is contained in:
@@ -59,14 +59,14 @@ impl Policy {
|
||||
impl std::fmt::Display for Evaluation {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::NoMatch => f.write_str("NoMatch"),
|
||||
Self::NoMatch => f.write_str("noMatch"),
|
||||
Self::Match {
|
||||
decision,
|
||||
matched_rules,
|
||||
} => {
|
||||
writeln!(f, "Match {{")?;
|
||||
writeln!(f, "match {{")?;
|
||||
writeln!(f, " decision: {decision},")?;
|
||||
writeln!(f, " matched_rules: [")?;
|
||||
writeln!(f, " matchedRules: [")?;
|
||||
for rule in matched_rules {
|
||||
writeln!(f, " {rule},")?;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ impl std::fmt::Display for RuleMatch {
|
||||
decision,
|
||||
} => write!(
|
||||
f,
|
||||
"PrefixRuleMatch {{ matched_prefix: {matched_prefix:?}, decision: {decision} }}"
|
||||
"prefixRuleMatch {{ matchedPrefix: {matched_prefix:?}, decision: {decision} }}"
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user