Skip to content

Commit 85dfbda

Browse files
committed
Fix clippy warning
1 parent a52da7f commit 85dfbda

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bdf-parser/src/glyph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct Glyph {
6868
}
6969

7070
fn parse_bitmap_row(line: &Line<'_>, bitmap: &mut Vec<u8>) -> Result<(), ()> {
71-
if !line.parameters.is_empty() || line.keyword.len() % 2 != 0 {
71+
if !line.parameters.is_empty() || !line.keyword.len().is_multiple_of(2) {
7272
return Err(());
7373
}
7474

eg-font-converter/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::path::PathBuf;
22

33
use anyhow::{anyhow, Context, Result};
4-
use clap::{command, Parser};
4+
use clap::Parser;
55
use eg_font_converter::FontConverter;
66
use embedded_graphics::mono_font::mapping::Mapping;
77

0 commit comments

Comments
 (0)