Skip to content

fix check warnings - #39

Open
manuelpelloni wants to merge 2 commits into
mainfrom
fix/check-warnings
Open

fix check warnings#39
manuelpelloni wants to merge 2 commits into
mainfrom
fix/check-warnings

Conversation

@manuelpelloni

Copy link
Copy Markdown
Contributor

Changes

Refactor: benzina-derive/src/enum_derive/ Split the monolithic enum_derive.rs (658 lines) into a module layout:

  • mod.rs — shared parsing, macros, and input struct
  • backend.rs — common token emission (gated on postgres | mysql)
  • postgres.rs / mysql.rs — backend-specific code generation
  • Added dead_code suppression on the shared path so compilation is clean when no backend feature is enabled

CI

  • Added RUSTFLAGS=-D warnings to the cargo-hack feature power-set step so the check fails on any

Replace the monolithic enum_derive.rs (658 lines) with a module layout:

- mod.rs: shared parsing, macros, and input struct
- backend.rs: common token emission (gated on postgres|mysql)
- postgres.rs: PostgreSQL-specific code generation
- mysql.rs: MySQL-specific code generation

Also add dead_code suppression annotations on the shared path so
compilation is clean when no backend feature is enabled.
Add RUSTFLAGS=-D warnings to the cargo-hack step so the feature
power-set check fails on any warning, not just hard errors.

Also sort imports in date_part.rs alphabetically.
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.

1 participant