Skip to content

Commit 8d74812

Browse files
committed
Clippy
1 parent c7d75ca commit 8d74812

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

parley/src/shape/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::util::nearly_eq;
1515
use crate::{FontContext, FontData};
1616

1717
use fontique::{self, Query, QueryFamily, QueryFont};
18-
use parlance::{BidiLevel, GenericFamily, Script};
18+
use parlance::{BidiLevel, GenericFamily};
1919

2020
#[allow(clippy::too_many_arguments)]
2121
pub(crate) fn shape_text<'a, B: Brush>(

parley_engine/src/shape/atom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ mod tests {
855855

856856
let char_style_indices = vec![0; text.chars().count()];
857857
let items = [Item {
858-
char_end: text.chars().count() as u32,
858+
char_end: text.chars().count().try_into().unwrap(),
859859
options: ShapeOptions {
860860
font_size: 32.0,
861861
language: None,

parley_engine/src/shape/shaped_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ mod tests {
737737
},
738738
},
739739
Item {
740-
char_end: text.chars().count() as u32,
740+
char_end: text.chars().count().try_into().unwrap(),
741741
options: ShapeOptions {
742742
font_size: 32.0,
743743
language: None,

0 commit comments

Comments
 (0)