summaryrefslogtreecommitdiff
path: root/src/layout/incremental.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-30 11:48:51 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-30 11:48:51 +0200
commit65c0c5607e56ca8bc7866d94b2496a25e096149a (patch)
tree2cb087a9ff524aefa6cff7fc7e1629aaa6bc886b /src/layout/incremental.rs
parent470f8001a1dba0022ec9d3e46c67c3bbc31359be (diff)
Make clippy a bit happier
Diffstat (limited to 'src/layout/incremental.rs')
-rw-r--r--src/layout/incremental.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs
index 1dd90f8e..d41fe431 100644
--- a/src/layout/incremental.rs
+++ b/src/layout/incremental.rs
@@ -21,7 +21,7 @@ pub struct LayoutCache {
impl LayoutCache {
/// Create a new, empty layout cache.
pub fn new() -> Self {
- Self { frames: HashMap::new(), age: 0 }
+ Self::default()
}
/// Clear the cache.