We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DerefMut
FileSnapshot
1 parent a8333f1 commit 7a96a25Copy full SHA for 7a96a25
gix-fs/src/snapshot.rs
@@ -57,6 +57,12 @@ impl<T: std::fmt::Debug> Deref for FileSnapshot<T> {
57
}
58
59
60
+impl<T: std::fmt::Debug> std::ops::DerefMut for FileSnapshot<T> {
61
+ fn deref_mut(&mut self) -> &mut Self::Target {
62
+ &mut self.value
63
+ }
64
+}
65
+
66
impl<T: std::fmt::Debug> Deref for SharedFileSnapshotMut<T> {
67
type Target = MutableOnDemand<Option<SharedFileSnapshot<T>>>;
68
0 commit comments