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

refactor connect stage

This commit is contained in:
Nikolay Kim
2019-07-01 11:20:24 +06:00
parent 9d8b3e6275
commit 1b17d274a0
7 changed files with 106 additions and 143 deletions

View File

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