Skip to content

Commit

Permalink
Attempt to fix mod.rs formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Dec 11, 2024
1 parent 48563df commit 69724de
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tools/generate_fonts_file/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,17 @@ fn main() -> Result<()> {
.into_diagnostic()
.wrap_err_with(|| format!("Unable to open '{:?}'", args.dir_out.join("mod.rs")))?;

fonts_file
.write_all(b"crate::font::font_definitions!(\n")
write!(fonts_file, "crate::font::font_definitions!(\n")
.into_diagnostic()
.wrap_err("Error while writing mod.rs!")?;

for name in font_names {
write!(fonts_file, " {name},")
write!(fonts_file, " {name},\n")
.into_diagnostic()
.wrap_err("Error while writing mod.rs!")?;
}

fonts_file
.write_all(b");")
write!(fonts_file, ");\n")
.into_diagnostic()
.wrap_err("Error while writing file")?;

Expand Down

0 comments on commit 69724de

Please sign in to comment.