From ef7985c177c5ec6fe4d26559eca14c9f0b8bc69d Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 22 Jul 2025 18:23:24 +0200 Subject: style: organize imports --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index ccf7da0..6f105de 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,8 @@ #![doc = include_str!("../README.md")] pub mod dialog; pub use dialog::Dialog; -use iced_core as core; -use iced_core::alignment::Horizontal; use iced_widget::Button; +use iced_widget::core; use iced_widget::{container, text}; /// Creates a new [`Dialog`] with the given base and dialog content. @@ -37,7 +36,7 @@ where text(content) .size(14) .line_height(text::LineHeight::Absolute(core::Pixels(20.0))) - .align_x(Horizontal::Center), + .align_x(core::Alignment::Center), ) .on_press(message) .height(32) -- cgit v1.2.3