this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

♻️ Refactor a little

+2 -4
+1 -1
src/rendering/fonts.rs
··· 16 16 pub monospace_family: Option<String>, 17 17 } 18 18 19 - pub fn load_fonts(args: &FontOptions) -> anyhow::Result<usvg::Options> { 19 + pub fn load_fonts(args: &FontOptions) -> anyhow::Result<usvg::Options<'_>> { 20 20 let mut usvg = usvg::Options { 21 21 font_family: args.sans_serif_family.clone().unwrap_or("Arial".into()), 22 22 ..Default::default()
+1 -3
src/rendering/svg.rs
··· 114 114 } 115 115 116 116 pub fn dataset(self, key: &str, value: &str) -> Self { 117 - let mut attributes = self.attributes.clone(); 118 - attributes.insert(format!("data-{key}"), value.to_string()); 119 - Element { attributes, ..self } 117 + self.attr(&format!("data-{key}"), value) 120 118 } 121 119 122 120 pub fn class(self, class: &str) -> Self {