diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-15 16:59:49 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-15 17:06:43 +0100 |
| commit | 63c274e7f6aa3a8c3f43abb91935ec924a186f73 (patch) | |
| tree | 193777ff773c6b547c6ef828ddf9750694fae7bc /src/lib.rs | |
| parent | 8a38899c98b4f9829b2d1f21c8fee66d254d20c6 (diff) | |
Make clippy happier and remove `Str`
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(), } } |
