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/pad.rs | |
| parent | 8ea05739afdbe84fc50fe97d780cc6096d8df03d (diff) | |
Put incremental compilation behind feature
Diffstat (limited to 'src/layout/pad.rs')
| -rw-r--r-- | src/layout/pad.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/pad.rs b/src/layout/pad.rs index 9461f3ff..75ed366c 100644 --- a/src/layout/pad.rs +++ b/src/layout/pad.rs @@ -1,7 +1,8 @@ use super::*; /// A node that adds padding to its child. -#[derive(Debug, Clone, PartialEq, Hash)] +#[derive(Debug, Clone, PartialEq)] +#[cfg_attr(feature = "layout-cache", derive(Hash))] pub struct PadNode { /// The amount of padding. pub padding: Sides<Linear>, |
