summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
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(),
}
}