mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-01 17:34:25 +02:00
Move use
statements to beginning of widgets.rs
(#2631)
This commit is contained in:
parent
cdfe3e7359
commit
d998022f75
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user