wip: refactor

This commit is contained in:
Jonathan Kelley committed 2021-07-09 01:36:18 -04:00
1 parent 1cc1679a6b
commit 9276fd7db7
5 files changed
+443 -421

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ impl HookList {
pub(crate) fn next<T: 'static>(&self) -> Option<&mut T> {
self.vals.get(self.idx.get()).and_then(|inn| {
self.idx.set(self.idx.get() + 1);
let mut raw_box = unsafe { &mut *inn.cell.get() };
let raw_box = unsafe { &mut *inn.cell.get() };
raw_box.downcast_mut::<T>()
})
}