diff options
| author | Martin Haug <mhaug@live.de> | 2021-06-29 12:33:24 +0200 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2021-06-29 12:33:24 +0200 |
| commit | 21d919e2d2a38802ba96003597eadb68342d71ef (patch) | |
| tree | 9ec3dd8f08aa29456063ba478520254990578faa /src/layout/image.rs | |
| parent | 8ea05739afdbe84fc50fe97d780cc6096d8df03d (diff) | |
Put incremental compilation behind feature
Diffstat (limited to 'src/layout/image.rs')
| -rw-r--r-- | src/layout/image.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/image.rs b/src/layout/image.rs index 9ba8cd82..20a521ff 100644 --- a/src/layout/image.rs +++ b/src/layout/image.rs @@ -4,7 +4,8 @@ use crate::image::ImageId; use ::image::GenericImageView; /// An image node. -#[derive(Debug, Copy, Clone, PartialEq, Hash)] +#[derive(Debug, Copy, Clone, PartialEq)] +#[cfg_attr(feature = "layout-cache", derive(Hash))] pub struct ImageNode { /// The id of the image file. pub id: ImageId, |
