Skip to content

Commit c4b7cca

Browse files
committed
Clippy
1 parent 214887f commit c4b7cca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ unit_arg = "allow"
6464
needless_lifetimes = "allow"
6565
neg_cmp_op_on_partial_ord = "allow"
6666
manual_range_contains = "allow"
67+
manual_is_multiple_of = "allow"

src/fonts/library.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl FontLibrary {
313313
// TODO: we need some mechanism to widen the search when this
314314
// fails (certain chars might only be found in a special font).
315315
if id.is_none() {
316-
id = font.1.first().map(|id| *id);
316+
id = font.1.first().copied();
317317
}
318318

319319
entry.insert(id);

0 commit comments

Comments
 (0)