Mark `Popup` with `#[must_use]`
This commit is contained in:
parent
6d80707422
commit
3622a03a46
|
|
@ -160,6 +160,7 @@ impl From<PopupKind> for UiKind {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[must_use = "Call `.show()` to actually display the popup"]
|
||||||
pub struct Popup<'a> {
|
pub struct Popup<'a> {
|
||||||
id: Id,
|
id: Id,
|
||||||
ctx: Context,
|
ctx: Context,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue