启用 `clippy::tests_outside_test_module` lint
作者: Wumpf创建于 2024年8月12日更新于 2026年9月18日
标签type: enhancementgood first issuearea: infrastructure
还有很多测试没有放在测试模块中。这应该通过这个 clippy lint https://Rust-lang.GitHub.io/Rust-clippy/master/index.html#/tests_outside_test_module 一劳永逸地解决。不这样做意味着测试将会不必要地作为非测试构建的一部分进行编译。
内容来源: gfx-rs/wgpu