From 51842acb888559f2923d398e3e93f137a5017536 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 28 Feb 2024 10:19:37 -0600 Subject: [PATCH] new nightly clippy suggestion --- crates/libs/core/src/imp/factory_cache.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/libs/core/src/imp/factory_cache.rs b/crates/libs/core/src/imp/factory_cache.rs index eb4b2dac0e..62085a1b73 100644 --- a/crates/libs/core/src/imp/factory_cache.rs +++ b/crates/libs/core/src/imp/factory_cache.rs @@ -16,6 +16,12 @@ impl FactoryCache { } } +impl Default for FactoryCache { + fn default() -> Self { + Self::new() + } +} + impl FactoryCache { pub fn call crate::Result>(&self, callback: F) -> crate::Result { loop {