alpha
Login
or
Join now
gwen.works
/
shapemaker
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
♻️ Refactor a little
author
Gwenn Le Bihan
date
8 months ago
(Oct 24, 2025, 10:33 PM +0200)
commit
f8a03667
f8a03667b9093ce412b964af97158a189c44e9c7
parent
4c64fbd4
4c64fbd4c1427f86106a5b76f397d92d7cca4bad
+2
-4
2 changed files
Expand all
Collapse all
Unified
Split
src
rendering
fonts.rs
svg.rs
+1
-1
src/rendering/fonts.rs
Reviewed
···
16
16
pub monospace_family: Option<String>,
17
17
}
18
18
19
19
-
pub fn load_fonts(args: &FontOptions) -> anyhow::Result<usvg::Options> {
19
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
Reviewed
···
114
114
}
115
115
116
116
pub fn dataset(self, key: &str, value: &str) -> Self {
117
117
-
let mut attributes = self.attributes.clone();
118
118
-
attributes.insert(format!("data-{key}"), value.to_string());
119
119
-
Element { attributes, ..self }
117
117
+
self.attr(&format!("data-{key}"), value)
120
118
}
121
119
122
120
pub fn class(self, class: &str) -> Self {