@@ -700,10 +700,7 @@ impl ContractRunner {
700700 }
701701
702702 /// Process oracle evaluation into verdict and refusal
703- fn process_oracle_result (
704- & self ,
705- eval : & OracleEvaluation ,
706- ) -> ( Verdict , Option < Refusal > ) {
703+ fn process_oracle_result ( & self , eval : & OracleEvaluation ) -> ( Verdict , Option < Refusal > ) {
707704 match & eval. verdict {
708705 PolicyVerdict :: Compliant => ( Verdict :: Allow , None ) ,
709706
@@ -715,7 +712,9 @@ impl ContractRunner {
715712 category,
716713 code,
717714 message,
718- remediation : Some ( "Consider refactoring to address the concern" . to_string ( ) ) ,
715+ remediation : Some (
716+ "Consider refactoring to address the concern" . to_string ( ) ,
717+ ) ,
719718 evidence : Vec :: new ( ) ,
720719 overridable : true ,
721720 override_level : Some ( AuthorizationLevel :: User ) ,
@@ -762,7 +761,10 @@ impl ContractRunner {
762761 ConcernType :: Tier2Language { language } => (
763762 RefusalCategory :: ForbiddenLanguage ,
764763 RefusalCode :: Lang199OtherForbidden ,
765- format ! ( "Tier 2 language '{}' - consider Tier 1 alternative" , language) ,
764+ format ! (
765+ "Tier 2 language '{}' - consider Tier 1 alternative" ,
766+ language
767+ ) ,
766768 ) ,
767769 }
768770 }
@@ -795,9 +797,9 @@ impl ContractRunner {
795797
796798 let remediation = match language. to_lowercase ( ) . as_str ( ) {
797799 "typescript" => Some ( "Use ReScript instead of TypeScript" . to_string ( ) ) ,
798- "python" => Some (
799- "Python is only allowed in salt/ for SaltStack configs" . to_string ( ) ,
800- ) ,
800+ "python" => {
801+ Some ( "Python is only allowed in salt/ for SaltStack configs" . to_string ( ) )
802+ }
801803 "go" => Some ( "Use Rust instead of Go" . to_string ( ) ) ,
802804 "java" => Some ( "Use Rust/Tauri/Dioxus instead of Java" . to_string ( ) ) ,
803805 _ => None ,
@@ -1267,7 +1269,8 @@ impl RegressionHarness {
12671269 results : self . current_results . clone ( ) ,
12681270 } ;
12691271 let baseline = RegressionBaseline :: from_summary ( & summary, git_commit) ;
1270- let json = baseline. to_json ( )
1272+ let json = baseline
1273+ . to_json ( )
12711274 . map_err ( |e| std:: io:: Error :: new ( std:: io:: ErrorKind :: InvalidData , e) ) ?;
12721275 std:: fs:: write ( path, json)
12731276 }
@@ -1291,7 +1294,11 @@ impl RegressionHarness {
12911294 improvements : Vec :: new ( ) ,
12921295 behavior_changes : Vec :: new ( ) ,
12931296 stable_count : 0 ,
1294- new_tests : self . current_results . iter ( ) . map ( |r| r. name . clone ( ) ) . collect ( ) ,
1297+ new_tests : self
1298+ . current_results
1299+ . iter ( )
1300+ . map ( |r| r. name . clone ( ) )
1301+ . collect ( ) ,
12951302 removed_tests : Vec :: new ( ) ,
12961303 } ;
12971304 }
0 commit comments