diff --git a/wgpu-core/src/lock/ranked.rs b/wgpu-core/src/lock/ranked.rs index b24e2a358..e2e6b3392 100644 --- a/wgpu-core/src/lock/ranked.rs +++ b/wgpu-core/src/lock/ranked.rs @@ -104,7 +104,6 @@ impl LockState { } impl Mutex { - #[inline] pub fn new(rank: LockRank, value: T) -> Mutex { Mutex { inner: parking_lot::Mutex::new(value), @@ -112,7 +111,6 @@ impl Mutex { } } - #[inline] #[track_caller] pub fn lock(&self) -> MutexGuard { let state = LOCK_STATE.get(); diff --git a/wgpu-core/src/lock/vanilla.rs b/wgpu-core/src/lock/vanilla.rs index 47584b2ab..cd4428283 100644 --- a/wgpu-core/src/lock/vanilla.rs +++ b/wgpu-core/src/lock/vanilla.rs @@ -21,12 +21,10 @@ pub struct Mutex(parking_lot::Mutex); pub struct MutexGuard<'a, T>(parking_lot::MutexGuard<'a, T>); impl Mutex { - #[inline] pub fn new(_rank: super::rank::LockRank, value: T) -> Mutex { Mutex(parking_lot::Mutex::new(value)) } - #[inline] pub fn lock(&self) -> MutexGuard { MutexGuard(self.0.lock()) }