diff options
Diffstat (limited to 'core/src/widget')
-rw-r--r-- | core/src/widget/operation/focusable.rs | 4 | ||||
-rw-r--r-- | core/src/widget/operation/text_input.rs | 4 | ||||
-rw-r--r-- | core/src/widget/text.rs | 2 |
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, |