Update to Rust 2024 and fix compiler errors

This commit is contained in:
Héctor Ramón Jiménez 2025-02-21 01:19:53 +01:00
parent 81ca3d2a22
commit 67e489e382
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 13 additions and 13 deletions

View file

@ -1252,7 +1252,7 @@ impl PartialEq<Code> for Physical {
#[inline]
fn eq(&self, rhs: &Code) -> bool {
match self {
Physical::Code(ref code) => code == rhs,
Physical::Code(code) => code == rhs,
Physical::Unidentified(_) => false,
}
}
@ -1269,7 +1269,7 @@ impl PartialEq<NativeCode> for Physical {
#[inline]
fn eq(&self, rhs: &NativeCode) -> bool {
match self {
Physical::Unidentified(ref code) => code == rhs,
Physical::Unidentified(code) => code == rhs,
Physical::Code(_) => false,
}
}

View file

@ -304,7 +304,7 @@ where
let size = size.unwrap_or_else(|| renderer.default_size());
let font = font.unwrap_or_else(|| renderer.default_font());
let State(ref mut paragraph) = state;
let State(paragraph) = state;
paragraph.update(text::Text {
content,