1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

clippy fixes from 1.69.0

This commit is contained in:
Emil Ernerfeldt
2023-04-21 11:33:18 +02:00
parent 4d360f67a4
commit 4d357b0f02
17 changed files with 53 additions and 61 deletions

View File

@@ -126,7 +126,7 @@ impl CacheStorage {
pub fn cache<FrameCache: CacheTrait + Default>(&mut self) -> &mut FrameCache {
self.caches
.entry(std::any::TypeId::of::<FrameCache>())
.or_insert_with(|| Box::new(FrameCache::default()))
.or_insert_with(|| Box::<FrameCache>::default())
.as_any_mut()
.downcast_mut::<FrameCache>()
.unwrap()