Skip to content

fix(lint): remove blanket #![allow(...)] from main.rs and lib.rs#68

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/remove-blanket-allow-blocks
May 14, 2026
Merged

fix(lint): remove blanket #![allow(...)] from main.rs and lib.rs#68
hyperpolymath merged 1 commit into
mainfrom
fix/remove-blanket-allow-blocks

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

  • Removed blanket #![allow(...)] block from src/main.rs and src/lib.rs so clippy signal is restored across the crate
  • Fixed the lints that surfaced at-site (format-in-format-args, if-same-then-else)
  • Replaced mod xxx; redeclarations in main.rs with use verisimiser::{abi, codegen, manifest}; — eliminates source duplication between bin and lib crates, and the dead-code warnings that came from the bin crate seeing unused pub items

Closes

Test plan

  • cargo clippy --all-targets -- -D warnings clean
  • 26 unit tests pass (cargo test --lib --bins)
  • CI runs full integration suite on Linux (Windows path-escape failures in 2 integration tests are pre-existing, unrelated to this diff)

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>
@hyperpolymath hyperpolymath merged commit 212a6a5 into main May 14, 2026
16 of 18 checks passed
@hyperpolymath hyperpolymath deleted the fix/remove-blanket-allow-blocks branch May 14, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V-L3-B2: remove blanket #![allow(...)] in src/main.rs V-L3-B1: remove blanket #![allow(...)] in src/lib.rs — restores clippy signal

1 participant