Lint
This commit is contained in:
1 parent
99fc9f608e
commit
e43da1b9e8
25 files changed
+110
-135
No files matched your search
+1
-4
@@ -72,15 +72,12 @@ impl std::hash::Hash for LayoutJob<'_> {
|
||||
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
|
||||
self.segments.hash(state);
|
||||
match &self.font_family {
|
||||
FontFamily::Single(FontFamilyName::Named(cow)) => {
|
||||
FontFamily::Single(FontFamilyName::Named(cow)) | FontFamily::Source(cow) => {
|
||||
cow.hash(state);
|
||||
}
|
||||
FontFamily::Single(FontFamilyName::Generic(generic_family)) => {
|
||||
generic_family.hash(state);
|
||||
}
|
||||
FontFamily::Source(cow) => {
|
||||
cow.hash(state);
|
||||
}
|
||||
FontFamily::List(cow) => {
|
||||
for name in cow.iter() {
|
||||
match name {
|
||||
|
||||
@@ -118,7 +118,7 @@ impl GlyphRasterizer {
|
||||
self.cached_glyphs.clear();
|
||||
}
|
||||
|
||||
/// Gets a swash::FontRef from FontData
|
||||
/// Gets a [`swash::FontRef`] from [`FontData`]
|
||||
fn get_font_ref<'a>(&mut self, font: &'a FontData) -> swash::FontRef<'a> {
|
||||
let font_blob_id = font.data.id();
|
||||
|
||||
|
||||
Reference in new issue
Block a user