ekzhang / crepe

Datalog compiler embedded in Rust as a procedural macro
Apache License 2.0
453 stars 16 forks source link

Silence clippy warnings in generated code #25

Closed ekzhang closed 1 year ago

ekzhang commented 1 year ago

When using clippy, certain warnings appear in generated code, which creates noise. For example, in the code snippet below in the wild, the authors manually allowed the clippy::collapsible_if and clippy::explicit_iter_loop rules.

https://github.com/risingwavelabs/risingwave/blob/7cadc39dffda32a01587a08913591cf9666fe84e/src/meta/src/stream/stream_graph/schedule.rs#L15-L19