summaryrefslogtreecommitdiff
path: root/src/layout/nodes/document.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
commit13230db68c3cb2842f23f95fc1b47fd989e6277d (patch)
treeb0bf94a8e3f935a7e9076237783846dee14e3e81 /src/layout/nodes/document.rs
parentd2e220245d9c17a0ac8c3474984924f65ed6b835 (diff)
Fix some clippy warnings ✔
Diffstat (limited to 'src/layout/nodes/document.rs')
-rw-r--r--src/layout/nodes/document.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/layout/nodes/document.rs b/src/layout/nodes/document.rs
index af7a31e6..5c7a2410 100644
--- a/src/layout/nodes/document.rs
+++ b/src/layout/nodes/document.rs
@@ -7,11 +7,6 @@ pub struct Document {
}
impl Document {
- /// Create a new document.
- pub fn new() -> Self {
- Self { runs: vec![] }
- }
-
/// Layout the document.
pub async fn layout(&self, ctx: &mut LayoutContext) -> Vec<BoxLayout> {
let mut layouts = vec![];