Fixed turbofish issues

This commit is contained in:
ccgauche 2021-02-18 18:04:47 +01:00 committed by Marcel Märtens
parent a12e554266
commit f85e79af07

View File

@ -14,7 +14,7 @@ pub struct EcsAccessManager {
impl Default for EcsAccessManager { impl Default for EcsAccessManager {
fn default() -> Self { fn default() -> Self {
Self { Self {
ecs_pointer: AtomicPtr::new(std::ptr::null_mut::<_>()), ecs_pointer: AtomicPtr::new(std::ptr::null_mut()),
} }
} }
} }
@ -27,7 +27,7 @@ impl EcsAccessManager {
.store(world as *const _ as *mut _, Ordering::Relaxed); .store(world as *const _ as *mut _, Ordering::Relaxed);
let out = func(); let out = func();
self.ecs_pointer self.ecs_pointer
.store(std::ptr::null_mut::<_>(), Ordering::Relaxed); .store(std::ptr::null_mut(), Ordering::Relaxed);
out out
} }
@ -124,5 +124,5 @@ pub fn read_bytes(memory: &Memory, position: i32, length: u32) -> Vec<u8> {
memory.view()[(position as usize)..(position as usize) + length as usize] memory.view()[(position as usize)..(position as usize) + length as usize]
.iter() .iter()
.map(|x| x.get()) .map(|x| x.get())
.collect::<Vec<_>>() .collect()
} }