Skip to content

Commit 77b901c

Browse files
hyperpolymathclaude
andcommitted
fix: eliminate all clippy warnings and errors across entire codebase
- Mark FFI extern "C" functions as unsafe (14 errors fixed) - Fix all 110+ clippy warnings: strip_prefix, &PathBuf→&Path, Default impls, field initializers, redundant closures, etc. - Add missing ProverKind variants to test helpers (18 new backends) - Add Criterion benchmark dependency - Fix Coq test for missing stdlib environment - 391 tests passing, 0 clippy warnings on --all-targets Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cfecece commit 77b901c

54 files changed

Lines changed: 451 additions & 241 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 193 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ proptest = "1"
8989
tokio-test = "0.4"
9090
which = "7"
9191
pretty_assertions = "1"
92+
criterion = { version = "0.5", features = ["html_reports"] }
93+
94+
[[bench]]
95+
name = "proof_benchmarks"
96+
harness = false
9297

9398
[workspace]
9499
members = [

benches/proof_benchmarks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn bench_simple_arithmetic(c: &mut Criterion) {
2020
fn bench_proof_state(c: &mut Criterion) {
2121
c.bench_function("proof_state_creation", |b| {
2222
b.iter(|| {
23-
let hypotheses = vec!["H1: P".to_string(), "H2: Q".to_string()];
23+
let hypotheses = ["H1: P".to_string(), "H2: Q".to_string()];
2424
let conclusion = "P /\\ Q";
2525
// Simulate proof state construction
2626
black_box(hypotheses.len() + conclusion.len())

examples/aspect_tagging_demo.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
use echidna::aspect::{
77
AggregationStrategy, Aspect, AspectTagger, CompositeTagger, NeuralTagger, RuleBasedTagger,
8-
TheoremFeatures,
98
};
109
use echidna::core::Term;
1110

src/rust/agent/actors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl ContextAgent {
124124
}
125125

126126
pub fn start_actor() -> Addr<Self> {
127-
SyncArbiter::start(1, || ContextAgent::new())
127+
SyncArbiter::start(1, ContextAgent::new)
128128
}
129129
}
130130

@@ -184,7 +184,7 @@ impl LemmaAgent {
184184
}
185185

186186
pub fn start_actor() -> Addr<Self> {
187-
SyncArbiter::start(1, || LemmaAgent::new())
187+
SyncArbiter::start(1, LemmaAgent::new)
188188
}
189189
}
190190

0 commit comments

Comments
 (0)