mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-03 07:10:05 -04:00
Set WindowBuilder to must_use
This commit is contained in:
@@ -85,6 +85,7 @@ impl WindowId {
|
|||||||
|
|
||||||
/// Object that allows building windows.
|
/// Object that allows building windows.
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
|
#[must_use]
|
||||||
pub struct WindowBuilder {
|
pub struct WindowBuilder {
|
||||||
/// The attributes to use to create the window.
|
/// The attributes to use to create the window.
|
||||||
pub window: WindowAttributes,
|
pub window: WindowAttributes,
|
||||||
|
|||||||
Reference in New Issue
Block a user