Fix clippy lints

This commit is contained in:
Héctor Ramón Jiménez 2023-02-27 01:12:06 +01:00
parent fbb14bf9b8
commit 4e615a65ca
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@ use iced_graphics::text;
use std::borrow::Cow;
#[allow(clippy::large_enum_variant)]
pub enum Backend {
Wgpu(iced_wgpu::Backend),
TinySkia(iced_tiny_skia::Backend),

View file

@ -89,7 +89,7 @@ impl Pipeline {
size,
};
let (_, buffer) = fields.render_cache.allocate(&fields.fonts, key);
let (_, buffer) = fields.render_cache.allocate(fields.fonts, key);
let (total_lines, max_width) = buffer
.layout_runs()
@ -112,7 +112,7 @@ impl Pipeline {
alignment::Vertical::Bottom => bounds.y - total_height,
};
let mut swash = cosmic_text::SwashCache::new(&fields.fonts);
let mut swash = cosmic_text::SwashCache::new(fields.fonts);
for run in buffer.layout_runs() {
for glyph in run.glyphs {