summaryrefslogtreecommitdiff
path: root/src/layout/incremental.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-31 22:59:14 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-01 00:00:36 +0200
commit3c92bad9a7cd6b880de197806443ffcce2cac9d8 (patch)
tree1faf79c66e23bc37711af16ad690a9878e28d348 /src/layout/incremental.rs
parentfbd3d191137aac8188ab8c6503d257d65d873972 (diff)
Pretty-printed diagnostics with traceback
Diffstat (limited to 'src/layout/incremental.rs')
-rw-r--r--src/layout/incremental.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs
index e7d12d10..32353d6f 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(Debug, Default, Clone)]
+#[derive(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
@@ -70,9 +70,9 @@ impl LayoutCache {
) {
let entry = FramesEntry::new(frames, level);
match self.frames.entry(hash) {
- Entry::Occupied(o) => o.into_mut().push(entry),
- Entry::Vacant(v) => {
- v.insert(vec![entry]);
+ Entry::Occupied(occupied) => occupied.into_mut().push(entry),
+ Entry::Vacant(vacant) => {
+ vacant.insert(vec![entry]);
}
}
}