summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:19:53 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-21 01:37:13 +0100
commit67e489e382e98fc5d101b7892f1c7e44563d60f5 (patch)
tree17021855ef0bcd76eb6cfbfadf0a82f89c7b5568 /core
parent81ca3d2a223d62fbb48b93dcea5409f6212605fa (diff)
downloadiced-67e489e382e98fc5d101b7892f1c7e44563d60f5.tar.gz
iced-67e489e382e98fc5d101b7892f1c7e44563d60f5.tar.bz2
iced-67e489e382e98fc5d101b7892f1c7e44563d60f5.zip
Update to Rust 2024 and fix compiler errors
Diffstat (limited to 'core')
-rw-r--r--core/src/keyboard/key.rs4
-rw-r--r--core/src/widget/text.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/keyboard/key.rs b/core/src/keyboard/key.rs
index 47169d9a..8edb280c 100644
--- a/core/src/keyboard/key.rs
+++ b/core/src/keyboard/key.rs
@@ -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,
}
}
diff --git a/core/src/widget/text.rs b/core/src/widget/text.rs
index c7ec3c8b..9a00fcdb 100644
--- a/core/src/widget/text.rs
+++ b/core/src/widget/text.rs
@@ -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,