gfx-rs/wgpu

Enable `clippy::tests_outside_test_module` lint

Open

#6106 aperta il 12 ago 2024

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Rust (703 fork)batch import
area: infrastructuregood first issuetype: enhancement

Metriche repository

Star
 (9290 star)
Metriche merge PR
 (Merge medio 10g 7h) (61 PR mergiate in 30 g)

Descrizione

There's a whole bunch of tests that aren't in test modules. This should be solved once and for all using this clippy lint https://rust-lang.github.io/rust-clippy/master/index.html#/tests_outside_test_module

Not doing so means that the tests will be unnecessarily compiled as part of non test builds

Guida contributor