Skip to content

Commit 69e2ae8

Browse files
committed
chore(fmt): apply cargo fmt to D1 + S5 files
cargo fmt --check was failing on tests/gnn_augment_integration.rs (from the S5 verification harness) and a few lines in router.rs + aspect.rs (from D1). Pure mechanical rustfmt application; no semantic changes. Test Suite job on PR #103 was tripping on this. https://claude.ai/code/session_01YPqu7gti4azBach6ZvpRFJ
1 parent ece2f9a commit 69e2ae8

3 files changed

Lines changed: 23 additions & 10 deletions

File tree

src/rust/agent/router.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ impl ProverRouter {
107107
}
108108

109109
// Coq for inductive proofs ("proof_techniques.induction")
110-
if goal.aspects.iter().any(|s| s.starts_with("proof_techniques.")) {
110+
if goal
111+
.aspects
112+
.iter()
113+
.any(|s| s.starts_with("proof_techniques."))
114+
{
111115
return ProverKind::Coq;
112116
}
113117

src/rust/aspect.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,10 @@ mod tests {
12511251

12521252
#[test]
12531253
fn test_dotted_key_natural_numbers() {
1254-
assert_eq!(Aspect::NaturalNumbers.dotted_key(), "arithmetic.natural_numbers");
1254+
assert_eq!(
1255+
Aspect::NaturalNumbers.dotted_key(),
1256+
"arithmetic.natural_numbers"
1257+
);
12551258
}
12561259

12571260
#[test]
@@ -1261,7 +1264,10 @@ mod tests {
12611264

12621265
#[test]
12631266
fn test_dotted_key_propositional_logic() {
1264-
assert_eq!(Aspect::PropositionalLogic.dotted_key(), "logic.propositional_logic");
1267+
assert_eq!(
1268+
Aspect::PropositionalLogic.dotted_key(),
1269+
"logic.propositional_logic"
1270+
);
12651271
}
12661272

12671273
#[test]

tests/gnn_augment_integration.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ async fn test_health_status_richer_payload() {
105105
..GnnConfig::default()
106106
});
107107

108-
let health = client.health_status().await.expect("health_status should succeed");
108+
let health = client
109+
.health_status()
110+
.await
111+
.expect("health_status should succeed");
109112

110113
assert!(health.gnn_model_loaded, "mock reports model loaded");
111114
assert_eq!(health.model_path.as_deref(), Some("/fake/path"));
@@ -118,11 +121,7 @@ async fn test_health_status_richer_payload() {
118121

119122
// ─── helper: assert top tactic from suggest_tactics ─────────────────────────
120123

121-
async fn assert_top_tactic_is_apply(
122-
kind: ProverKind,
123-
prover_name: &str,
124-
base_url: &str,
125-
) {
124+
async fn assert_top_tactic_is_apply(kind: ProverKind, prover_name: &str, base_url: &str) {
126125
let backend = ProverFactory::create(kind, gnn_config(base_url))
127126
.unwrap_or_else(|e| panic!("Failed to create {:?} backend: {}", kind, e));
128127

@@ -140,7 +139,11 @@ async fn assert_top_tactic_is_apply(
140139

141140
let first = &tactics[0];
142141
match first {
143-
echidna::core::Tactic::Custom { prover, command, args } => {
142+
echidna::core::Tactic::Custom {
143+
prover,
144+
command,
145+
args,
146+
} => {
144147
assert_eq!(
145148
prover.as_str(),
146149
prover_name,

0 commit comments

Comments
 (0)