Set WindowBuilder to must_use

This commit is contained in:
Lucas Kent 2022-06-08 06:55:57 +10:00 committed by GitHub
parent 92530299eb
commit c7f7181388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,7 @@ impl WindowId {
/// Object that allows building windows.
#[derive(Clone, Default)]
#[must_use]
pub struct WindowBuilder {
/// The attributes to use to create the window.
pub window: WindowAttributes,