Skip to content

Commit

Permalink
oh THAT'S what the import was for
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Aug 10, 2024
1 parent f370793 commit 0be56fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maitake-sync/src/spin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ unsafe impl RawMutex for Spinlock {
}

#[cfg(not(loom))]
impl blocking::ConstInit for Spinlock {
impl crate::blocking::ConstInit for Spinlock {
// As usual, clippy is totally wrong about this --- the whole point of this
// constant is to create a *new* spinlock every time.
#[allow(clippy::declare_interior_mutable_const)]
Expand Down Expand Up @@ -243,7 +243,7 @@ unsafe impl RawRwLock for RwSpinlock {
}

#[cfg(not(loom))]
impl blocking::ConstInit for RwSpinlock {
impl crate::blocking::ConstInit for RwSpinlock {
// As usual, clippy is totally wrong about this --- the whole point of this
// constant is to create a *new* spinlock every time.
#[allow(clippy::declare_interior_mutable_const)]
Expand Down

0 comments on commit 0be56fd

Please sign in to comment.