Skip to content

Commit

Permalink
Move use statements to beginning of widgets.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
randomPoison committed Feb 7, 2025
1 parent f1459c5 commit fa58f86
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 @@ -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;
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 fa58f86

Please sign in to comment.