Commit b218130
chore(lint): remove blanket #![allow(...)] blocks; fix surfaced lints
The 13-lint allow block in both lib.rs and main.rs silenced clippy across
the codebase, making `just lint` (`cargo clippy -- -D warnings`) a hollow
signal. Removed both blocks and fixed every lint clippy surfaced.
Fixes:
- codegen/query.rs:124 — nested format!() flagged by
`clippy::format_in_format_args`. Combined `format!("{}::text",
format!("{}.ctid", t))` into `format!("{}.ctid::text", t)`.
- manifest/mod.rs:309 — `init_manifest` had a dead ternary returning
"false" on both branches (flagged by `clippy::if_same_then_else`).
Replaced with a single binding plus a comment explaining where the
per-backend toggle would go if/when it becomes real.
- main.rs — was re-declaring `mod abi; mod codegen; mod intercept;
mod manifest; mod tier1; mod tier2;` already declared in `lib.rs`,
so each module compiled twice. From the bin's perspective most of
the ABI types (ProvenanceEntry, LineageEdge, TemporalVersion,
AccessPolicy, SidecarConfig, DriftCategory, …) appeared as dead
code. Replaced the six `mod …;` lines with `use verisimiser::{abi,
codegen, manifest};` so the bin consumes the library properly.
This also halves redundant test runs (35 unique tests instead of
61 with duplicates).
Verified:
- `cargo clippy --all-targets -- -D warnings` exits clean
- `cargo test` reports 26 lib + 9 integration tests, 0 failed
Closes #16, #17
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6a0ccfd commit b218130
4 files changed
Lines changed: 7 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 2 | | |
17 | 3 | | |
18 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 1 | | |
16 | 2 | | |
17 | 3 | | |
| |||
31 | 17 | | |
32 | 18 | | |
33 | 19 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 20 | + | |
41 | 21 | | |
42 | 22 | | |
43 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
0 commit comments