Commit 212a6a5
fix(lint): remove blanket #![allow(...)] from main.rs and lib.rs (#68)
Closes #16, closes #17.
The blanket allow block was silencing 12 clippy lint categories across
the whole crate. Restore clippy signal by removing the block, then fix
each lint at the call site:
- main.rs: replace `mod {abi,codegen,intercept,manifest,tier1,tier2};`
with `use verisimiser::{abi, codegen, manifest};`. The binary crate
was redeclaring the same modules as the library crate, which both
duplicated the source and caused dead_code warnings on every
library item the binary didn't happen to reference. Routing main
through the lib crate eliminates the duplication and the warnings.
- codegen/query.rs:124: collapse `format!("{}::text", format!(...))`
nested call into a single `format!("{}.ctid::text", table_name)`
(format_in_format_args).
- manifest/mod.rs:309: the `if database == "sqlite" { "false" } else
{ "false" }` was a placeholder where both branches returned the
same literal. Simulation is unimplemented across all backends; use
a plain `let enable_simulation = "false";` with a comment noting
the backend-dependent value should be added when simulation lands
(if_same_then_else).
`cargo clippy --all-targets -- -D warnings` is clean. All 26 unit
tests pass.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 683ae35 commit 212a6a5
4 files changed
Lines changed: 4 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 | + | |
314 | 311 | | |
315 | 312 | | |
316 | 313 | | |
| |||
0 commit comments