Fix clippy lints
This commit is contained in:
parent
fbb14bf9b8
commit
4e615a65ca
2 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ use iced_graphics::text;
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum Backend {
|
pub enum Backend {
|
||||||
Wgpu(iced_wgpu::Backend),
|
Wgpu(iced_wgpu::Backend),
|
||||||
TinySkia(iced_tiny_skia::Backend),
|
TinySkia(iced_tiny_skia::Backend),
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ impl Pipeline {
|
||||||
size,
|
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
|
let (total_lines, max_width) = buffer
|
||||||
.layout_runs()
|
.layout_runs()
|
||||||
|
|
@ -112,7 +112,7 @@ impl Pipeline {
|
||||||
alignment::Vertical::Bottom => bounds.y - total_height,
|
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 run in buffer.layout_runs() {
|
||||||
for glyph in run.glyphs {
|
for glyph in run.glyphs {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue