diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-30 00:43:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-30 00:43:53 +0200 |
| commit | d5d2b80699a002594f429e30f5f1ca0ca58d3412 (patch) | |
| tree | 15e0f0565d4aa7c8230cb76b057b99761788c86c /src/layout/image.rs | |
| parent | 2f44d10aa4209b226cfc3d0f8f2c8516005edf6a (diff) | |
| parent | ff0e3442ef68a23dba273122f3ba0a54a34c45bf (diff) | |
Merge pull request #34 from typst/cfg-conditional
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, |
