diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-09 17:45:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-09 18:15:39 +0100 |
| commit | 642e149464341e3cf1856dda51d7f7a5b387081e (patch) | |
| tree | 8f03a2e9811eb5a283eb9fed9d70931412e32086 /src/util | |
| parent | 5a0e7cc36107c03001696b6dfbfdeb47abd2aeac (diff) | |
Incremental bug fixes
Co-Authored-By: Martin Haug <mhaug@live.de>
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/prehashed.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/prehashed.rs b/src/util/prehashed.rs index bab1c8f8..866bda5b 100644 --- a/src/util/prehashed.rs +++ b/src/util/prehashed.rs @@ -1,8 +1,10 @@ -use std::any::Any; use std::fmt::{self, Debug, Formatter}; use std::hash::{Hash, Hasher}; use std::ops::Deref; +#[cfg(feature = "layout-cache")] +use std::any::Any; + /// A wrapper around a type that precomputes its hash. #[derive(Copy, Clone)] pub struct Prehashed<T: ?Sized> { |
