Commit f77d571
committed
test: fix clippy warnings
```
error: this assertion has a constant value
--> crates/build-rs-test-lib/src/lib.rs:3:5
|
3 | assert!(cfg!(did_run_build_script));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider moving this into a const block: `const { assert!(..) }`
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#assertions_on_constants
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assertions_on_constants)]`
```
A bit annoying we can't have `lint.workspace = true` for this crate yet1 parent 6775d31 commit f77d571
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
0 commit comments