Skip to content

Commit

Permalink
Disable clippy lint needless_pass_by_ref_mut
Browse files Browse the repository at this point in the history
We sometimes use &mut to guarantee exclusive access to some ressource,
where the compiler can't see that such a guarantee is needed for
soundness. Therefore, warnings about needles &mut references should
not be generated.
  • Loading branch information
jannic committed Aug 29, 2023
1 parent a12bcda commit cd64b56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rp2040-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@

#![warn(missing_docs)]
#![no_std]
// We sometimes use &mut to guarantee exclusive access to some ressource,
// where the compiler can't see that such a guarantee is needed for
// soundness. Therefore, warnings about needles &mut references should
// not be generated.
#![allow(clippy::needless_pass_by_ref_mut)]

pub use paste;

Expand Down

0 comments on commit cd64b56

Please sign in to comment.