We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a52da7f commit 85dfbdaCopy full SHA for 85dfbda
2 files changed
bdf-parser/src/glyph.rs
@@ -68,7 +68,7 @@ pub struct Glyph {
68
}
69
70
fn parse_bitmap_row(line: &Line<'_>, bitmap: &mut Vec<u8>) -> Result<(), ()> {
71
- if !line.parameters.is_empty() || line.keyword.len() % 2 != 0 {
+ if !line.parameters.is_empty() || !line.keyword.len().is_multiple_of(2) {
72
return Err(());
73
74
eg-font-converter/src/main.rs
@@ -1,7 +1,7 @@
1
use std::path::PathBuf;
2
3
use anyhow::{anyhow, Context, Result};
4
-use clap::{command, Parser};
+use clap::Parser;
5
use eg_font_converter::FontConverter;
6
use embedded_graphics::mono_font::mapping::Mapping;
7
0 commit comments