Merge pull request #179 from quartiq/dependabot/cargo/bytemuck-1.20.0 #883
GitHub Actions / clippy
succeeded
Dec 1, 2024 in 1s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check warning on line 503 in src/hardware/setup.rs
github-actions / clippy
creating a mutable reference to mutable static is discouraged
warning: creating a mutable reference to mutable static is discouraged
--> src/hardware/setup.rs:503:29
|
503 | let ring = unsafe { DES_RING.write(ethernet::DesRing::new()) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
= note: `#[warn(static_mut_refs)]` on by default
Loading