Skip to content

Commit

Permalink
Move use statements to beginning of widgets.rs (#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomPoison authored Feb 11, 2025
1 parent cdfe3e7 commit d998022
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/solution.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ src

```rust,ignore
// ---- src/widgets.rs ----
pub use button::Button;
pub use label::Label;
pub use window::Window;
mod button;
mod label;
mod window;
Expand All @@ -46,10 +50,6 @@ pub trait Widget {
println!("{buffer}");
}
}
pub use button::Button;
pub use label::Label;
pub use window::Window;
```

```rust,ignore
Expand Down

0 comments on commit d998022

Please sign in to comment.