You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-01 12:44:55 +02:00
Move use
statements to beginning of widgets.rs
(#2631)
This commit is contained in:
@ -28,6 +28,10 @@ src
|
|||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
// ---- src/widgets.rs ----
|
// ---- src/widgets.rs ----
|
||||||
|
pub use button::Button;
|
||||||
|
pub use label::Label;
|
||||||
|
pub use window::Window;
|
||||||
|
|
||||||
mod button;
|
mod button;
|
||||||
mod label;
|
mod label;
|
||||||
mod window;
|
mod window;
|
||||||
@ -46,10 +50,6 @@ pub trait Widget {
|
|||||||
println!("{buffer}");
|
println!("{buffer}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub use button::Button;
|
|
||||||
pub use label::Label;
|
|
||||||
pub use window::Window;
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
|
Reference in New Issue
Block a user