From 6f99773d1e3cd6332472708c60b7f87f5d971de3 Mon Sep 17 00:00:00 2001 From: kmaasrud Date: Mon, 21 Feb 2022 21:57:02 +0100 Subject: [PATCH] style: formatted pre-release --- src/config/style.rs | 5 ++++- src/renderer/mdzk_renderer.rs | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/config/style.rs b/src/config/style.rs index a5b69aa3..f848b051 100644 --- a/src/config/style.rs +++ b/src/config/style.rs @@ -63,7 +63,10 @@ impl From for StyleConfig { variables: Some(style), } } else { - Self { additional_css: None, variables: None } + Self { + additional_css: None, + variables: None, + } } } } diff --git a/src/renderer/mdzk_renderer.rs b/src/renderer/mdzk_renderer.rs index 588df797..55b24237 100644 --- a/src/renderer/mdzk_renderer.rs +++ b/src/renderer/mdzk_renderer.rs @@ -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( @@ -220,7 +219,6 @@ impl Renderer for HtmlMdzk { } } - Ok(()) } } @@ -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"),