Skip to content

Commit

Permalink
Fix a Clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Aug 19, 2023
1 parent f8c516a commit c5368cc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/future/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,14 @@ impl<K, V, C> CacheBuilder<K, V, C> {
where
F: Fn(Arc<K>, V, RemovalCause) + Send + Sync + 'static,
{
let async_listener = move |k, v, c| std::future::ready(listener(k, v, c)).boxed();
let async_listener = move |k, v, c| {
{
listener(k, v, c);
std::future::ready(())
}
.boxed()
};

self.async_eviction_listener(async_listener)
}

Expand Down

0 comments on commit c5368cc

Please sign in to comment.