diff options
Diffstat (limited to 'keystore2/src/async_task.rs')
-rw-r--r-- | keystore2/src/async_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keystore2/src/async_task.rs b/keystore2/src/async_task.rs index 0515c8f8..6548445f 100644 --- a/keystore2/src/async_task.rs +++ b/keystore2/src/async_task.rs @@ -67,7 +67,7 @@ impl Shelf { pub fn get_mut<T: Any + Send + Default>(&mut self) -> &mut T { self.0 .entry(TypeId::of::<T>()) - .or_insert_with(|| Box::new(T::default()) as Box<dyn Any + Send>) + .or_insert_with(|| Box::<T>::default() as Box<dyn Any + Send>) .downcast_mut::<T>() .unwrap() } |