summaryrefslogtreecommitdiff
path: root/src/page.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/page.rs')
-rw-r--r--src/page.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/page.rs b/src/page.rs
index c00aa54..d2f144a 100644
--- a/src/page.rs
+++ b/src/page.rs
@@ -126,7 +126,12 @@ pub struct PageMeta {
impl PageMeta {
fn new(name: String, title: Option<String>, path: PathBuf) -> Self {
- trace!("PageMeta: name={:?} title={:?} path={:?}", name, title, path);
+ trace!(
+ "PageMeta: name={:?} title={:?} path={:?}",
+ name,
+ title,
+ path
+ );
Self { name, title, path }
}
@@ -165,7 +170,11 @@ pub struct MetaBuilder {
impl MetaBuilder {
pub fn build(self) -> PageMeta {
- PageMeta::new(self.name, self.title, self.path.expect("path set on MetaBuilder"))
+ PageMeta::new(
+ self.name,
+ self.title,
+ self.path.expect("path set on MetaBuilder"),
+ )
}
pub fn name(mut self, name: String) -> Self {