diff --git a/src/tools/lru_cache.rs b/src/tools/lru_cache.rs index 502f08f1..1033dd42 100644 --- a/src/tools/lru_cache.rs +++ b/src/tools/lru_cache.rs @@ -100,7 +100,8 @@ pub struct LruCache { _marker: PhantomData>>, } -unsafe impl Send for LruCache {} +// trivial: if our contents are Send, the whole cache is Send +unsafe impl Send for LruCache {} impl LruCache { /// Create LRU cache instance which holds up to `capacity` nodes at once.