Skip to content

Commit

Permalink
style: formatted pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaasrud committed Feb 21, 2022
1 parent ba06414 commit 6f99773
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/config/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ impl From<mdbook::Config> for StyleConfig {
variables: Some(style),
}
} else {
Self { additional_css: None, variables: None }
Self {
additional_css: None,
variables: None,
}
}
}
}
7 changes: 4 additions & 3 deletions src/renderer/mdzk_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ impl Renderer for HtmlMdzk {
.context("Unexpected error when constructing destination path")?;
}


// Create data for all notes
let mut data = BTreeMap::new();
data.insert(
Expand Down Expand Up @@ -220,7 +219,6 @@ impl Renderer for HtmlMdzk {
}
}


Ok(())
}
}
Expand Down Expand Up @@ -267,7 +265,10 @@ fn fix_link(dest: CowStr) -> CowStr {
}

const FONTS: [(&str, &[u8]); 62] = [
("Inter.var.woff2", include_bytes!("theme/css/fonts/Inter.var.woff2")),
(
"Inter.var.woff2",
include_bytes!("theme/css/fonts/Inter.var.woff2"),
),
(
"Source_Code_Pro_v11_All_Charsets_500.woff2",
include_bytes!("theme/css/fonts/Source_Code_Pro_v11_All_Charsets_500.woff2"),
Expand Down

0 comments on commit 6f99773

Please sign in to comment.