summaryrefslogtreecommitdiffstats
path: root/core/src/widget
diff options
context:
space:
mode:
authorLibravatar Héctor <hector@hecrj.dev>2025-02-21 19:21:10 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-21 19:21:10 +0100
commitf1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa (patch)
treeb2eeb7537ffd49bfbdd24c1a9580870eca99caa6 /core/src/widget
parent81ca3d2a223d62fbb48b93dcea5409f6212605fa (diff)
parent800a73ddd7d4a2e0b1ed23ec565cbc6325b3b7f0 (diff)
downloadiced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.tar.gz
iced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.tar.bz2
iced-f1ed99cb47997e1d194a41e7cdf2846f8eb5f8fa.zip
Merge pull request #2809 from iced-rs/rust-2024
Update to Rust 2024
Diffstat (limited to 'core/src/widget')
-rw-r--r--core/src/widget/operation/focusable.rs4
-rw-r--r--core/src/widget/operation/text_input.rs4
-rw-r--r--core/src/widget/text.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/core/src/widget/operation/focusable.rs b/core/src/widget/operation/focusable.rs
index a1327bc1..1ee41244 100644
--- a/core/src/widget/operation/focusable.rs
+++ b/core/src/widget/operation/focusable.rs
@@ -1,7 +1,7 @@
//! Operate on widgets that can be focused.
-use crate::widget::operation::{self, Operation, Outcome};
-use crate::widget::Id;
use crate::Rectangle;
+use crate::widget::Id;
+use crate::widget::operation::{self, Operation, Outcome};
/// The internal state of a widget that can be focused.
pub trait Focusable {
diff --git a/core/src/widget/operation/text_input.rs b/core/src/widget/operation/text_input.rs
index a46f1a2d..efb2a4d3 100644
--- a/core/src/widget/operation/text_input.rs
+++ b/core/src/widget/operation/text_input.rs
@@ -1,7 +1,7 @@
//! Operate on widgets that have text input.
-use crate::widget::operation::Operation;
-use crate::widget::Id;
use crate::Rectangle;
+use crate::widget::Id;
+use crate::widget::operation::Operation;
/// The internal state of a widget that has text input.
pub trait TextInput {
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,