Skip to content

Commit

Permalink
new nightly clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Feb 28, 2024
1 parent 71510fc commit ea61695
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/libs/core/src/imp/factory_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ impl<C, I> FactoryCache<C, I> {
}
}

impl<C, I> Default for FactoryCache<C, I> {
fn default() -> Self {
Self::new()
}
}

impl<C: crate::RuntimeName, I: Interface> FactoryCache<C, I> {
pub fn call<R, F: FnOnce(&I) -> crate::Result<R>>(&self, callback: F) -> crate::Result<R> {
loop {
Expand Down

0 comments on commit ea61695

Please sign in to comment.