summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-29 22:27:10 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-29 22:27:10 +0200
commit42a27b48df427edf8dbb624c51551a90ecf2e7ea (patch)
tree9892b610e5de7707dca7fadef0d470a837dd261d /src/layout
parent2c6127dea611944abb09a0d38375ad7cf9baced0 (diff)
Change derive order
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/frame.rs2
-rw-r--r--src/layout/incremental.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/frame.rs b/src/layout/frame.rs
index 862dc4be..82ac71a9 100644
--- a/src/layout/frame.rs
+++ b/src/layout/frame.rs
@@ -9,7 +9,7 @@ use crate::geom::{Length, Path, Point, Size};
use crate::image::ImageId;
/// A finished layout with elements at fixed positions.
-#[derive(Default, Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
+#[derive(Debug, Default, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub struct Frame {
/// The size of the frame.
pub size: Size,
diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs
index 352434ed..e7d12d10 100644
--- a/src/layout/incremental.rs
+++ b/src/layout/incremental.rs
@@ -8,7 +8,7 @@ use super::*;
///
/// _This is only available when the `layout-cache` feature is enabled._
#[cfg(feature = "layout-cache")]
-#[derive(Default, Debug, Clone)]
+#[derive(Debug, Default, Clone)]
pub struct LayoutCache {
/// Maps from node hashes to the resulting frames and regions in which the
/// frames are valid. The right hand side of the hash map is a vector of