summaryrefslogtreecommitdiff
path: root/src/layout/model.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-02 16:56:14 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-02 16:56:14 +0200
commitd5ff97f42ed1e682a66ea8d51e5f9ed1be547b9c (patch)
tree2fdc3a368c4320051e3f62a460f3912fe5f44c7c /src/layout/model.rs
parent533374db14087ac54fdc86afa5f009487ac1b850 (diff)
Move binary into separate crate and tidy dependencies 🎭
Diffstat (limited to 'src/layout/model.rs')
-rw-r--r--src/layout/model.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/model.rs b/src/layout/model.rs
index 08a9ec0e..bde451e6 100644
--- a/src/layout/model.rs
+++ b/src/layout/model.rs
@@ -4,7 +4,6 @@
use std::future::Future;
use std::pin::Pin;
-use smallvec::smallvec;
use crate::{Pass, Feedback};
use crate::SharedFontLoader;
@@ -271,7 +270,7 @@ impl<'a> ModelLayouter<'a> {
// new page style and update it within the layouter.
let margins = style.margins();
self.ctx.base = style.dimensions.unpadded(margins);
- self.layouter.set_spaces(smallvec![
+ self.layouter.set_spaces(vec![
LayoutSpace {
dimensions: style.dimensions,
padding: margins,