From fa58f86490fe5d1f93788e35df8e6c8d8b95c9dc Mon Sep 17 00:00:00 2001 From: Nicole LeGare Date: Thu, 6 Feb 2025 16:23:45 -0800 Subject: [PATCH 1/2] Move `use` statements to beginning of `widgets.rs` --- src/modules/solution.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/solution.md b/src/modules/solution.md index f835f709db0c..9b8c21fa561c 100644 --- a/src/modules/solution.md +++ b/src/modules/solution.md @@ -32,6 +32,10 @@ mod button; mod label; mod window; +pub use button::Button; +pub use label::Label; +pub use window::Window; + pub trait Widget { /// Natural width of `self`. fn width(&self) -> usize; @@ -46,10 +50,6 @@ pub trait Widget { println!("{buffer}"); } } - -pub use button::Button; -pub use label::Label; -pub use window::Window; ``` ```rust,ignore From d09fd4c668cbf893e17ddf2fbc7fff026185b7c4 Mon Sep 17 00:00:00 2001 From: Nicole LeGare Date: Fri, 7 Feb 2025 11:08:12 -0800 Subject: [PATCH 2/2] Move `use` statements EVEN HARDER --- src/modules/solution.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/solution.md b/src/modules/solution.md index 9b8c21fa561c..e8fd9ceaa5a0 100644 --- a/src/modules/solution.md +++ b/src/modules/solution.md @@ -28,14 +28,14 @@ src ```rust,ignore // ---- src/widgets.rs ---- -mod button; -mod label; -mod window; - pub use button::Button; pub use label::Label; pub use window::Window; +mod button; +mod label; +mod window; + pub trait Widget { /// Natural width of `self`. fn width(&self) -> usize;