summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-15 16:59:49 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-15 17:06:43 +0100
commit63c274e7f6aa3a8c3f43abb91935ec924a186f73 (patch)
tree193777ff773c6b547c6ef828ddf9750694fae7bc /src/lib.rs
parent8a38899c98b4f9829b2d1f21c8fee66d254d20c6 (diff)
Make clippy happier and remove `Str`
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 033230f0..895430a2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -28,6 +28,8 @@
//! [PDF]: export::pdf
#[macro_use]
+pub mod util;
+#[macro_use]
pub mod diag;
#[macro_use]
pub mod eval;
@@ -43,7 +45,6 @@ pub mod parse;
pub mod source;
pub mod style;
pub mod syntax;
-pub mod util;
use std::rc::Rc;
@@ -182,7 +183,7 @@ impl ContextBuilder {
loader,
#[cfg(feature = "layout-cache")]
layouts: LayoutCache::new(self.policy, self.max_size),
- std: self.std.unwrap_or(library::new()),
+ std: self.std.unwrap_or_else(library::new),
style: self.style.unwrap_or_default(),
}
}