1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-31 22:06:59 +02:00

mark some fn as unsafe

This commit is contained in:
Nikolay Kim
2019-07-17 11:16:38 +06:00
parent 23a230a83b
commit 42d526bced
4 changed files with 16 additions and 14 deletions

View File

@@ -29,7 +29,7 @@ impl<T> Cell<T> {
}
}
pub fn get_mut(&mut self) -> &mut T {
unsafe { &mut *self.inner.as_ref().get() }
pub(crate) unsafe fn get_mut(&mut self) -> &mut T {
&mut *self.inner.as_ref().get()
}
}