Commit 8078fb5
authored
fix: remove unexpected cfg(feature = "validation") from generated tests (#103)
The __validate_wgsl test generated by #[wgsl] for modules with imports
was gated on cfg(all(test, feature = "validation")), but the
"validation" feature belongs to the wgsl-rs crate, not the consuming
crate. This produced an 'unexpected cfg condition value' warning in
downstream crates. Change to cfg(test) only — the validate() method
availability is already controlled by wgsl-rs feature flags.1 parent 128aba1 commit 8078fb5
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
275 | | - | |
| 279 | + | |
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
| |||
0 commit comments