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/fixed.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/fixed.rs')
| -rw-r--r-- | src/layout/fixed.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs index 73235168..c1d1ac5e 100644 --- a/src/layout/fixed.rs +++ b/src/layout/fixed.rs @@ -1,7 +1,8 @@ use super::*; /// A node that can fix its child's width and height. -#[derive(Debug, Clone, PartialEq, Hash)] +#[derive(Debug, Clone, PartialEq)] +#[cfg_attr(feature = "layout-cache", derive(Hash))] pub struct FixedNode { /// The fixed width, if any. pub width: Option<Linear>, |
