Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrg committed May 21, 2024
1 parent 16c77fa commit b0e6520
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::style::{Brush, FontFeature, FontVariation};
use crate::util::nearly_eq;
#[cfg(feature = "std")]
use crate::Font;
use fontique::{self, Attributes, Query, QueryFamily, QueryFont};
use fontique::{self, Attributes, Query, QueryFont};
use swash::shape::*;
#[cfg(feature = "std")]
use swash::text::cluster::{CharCluster, CharInfo, Token};
Expand Down Expand Up @@ -211,6 +211,7 @@ impl<'a, 'b, B: Brush> partition::Selector for FontSelector<'a, 'b, B> {
type SelectedFont = SelectedFont;

fn select_font(&mut self, cluster: &mut CharCluster) -> Option<Self::SelectedFont> {
use fontique::QueryFamily;
let style_index = cluster.user_data() as u16;
if style_index != self.style_index {
self.style_index = style_index;
Expand Down

0 comments on commit b0e6520

Please sign in to comment.