summaryrefslogtreecommitdiff
path: root/src/mutex/guard.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-03-11 16:33:26 -0400
committerMica White <botahamec@outlook.com>2024-03-11 16:33:26 -0400
commit462fc2d9aab8f0cba680caec344e4c388e9901b1 (patch)
tree6b401c5ed4920c2ec8093d5c49976fe0b72573c2 /src/mutex/guard.rs
parent5eaa4fe1d3bfcda696122ba3d6b4914dba19ef96 (diff)
Documentation
Diffstat (limited to 'src/mutex/guard.rs')
-rw-r--r--src/mutex/guard.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mutex/guard.rs b/src/mutex/guard.rs
index 5d249ee..9a309b4 100644
--- a/src/mutex/guard.rs
+++ b/src/mutex/guard.rs
@@ -22,7 +22,7 @@ impl<'a, T: ?Sized + 'a, R: RawMutex> Deref for MutexRef<'a, T, R> {
// safety: this is the only type that can use `value`, and there's
// a reference to this type, so there cannot be any mutable
// references to this value.
- unsafe { &*self.0.value.get() }
+ unsafe { &*self.0.data.get() }
}
}
@@ -31,7 +31,7 @@ impl<'a, T: ?Sized + 'a, R: RawMutex> DerefMut for MutexRef<'a, T, R> {
// safety: this is the only type that can use `value`, and we have a
// mutable reference to this type, so there cannot be any other
// references to this value.
- unsafe { &mut *self.0.value.get() }
+ unsafe { &mut *self.0.data.get() }
}
}