mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-23 19:38:27 +00:00
Add must_use to Image
This commit is contained in:
parent
e9b1552f05
commit
e1a4bbc638
@ -29,6 +29,7 @@ impl From<*mut c_void> for ImTexture {
|
|||||||
/// See [`Ui::image`].
|
/// See [`Ui::image`].
|
||||||
///
|
///
|
||||||
/// Create your image using the builder pattern then [`Image::build`] it.
|
/// Create your image using the builder pattern then [`Image::build`] it.
|
||||||
|
#[must_use]
|
||||||
pub struct Image<'ui> {
|
pub struct Image<'ui> {
|
||||||
/// we use Result to allow postponing any construction errors to the build call
|
/// we use Result to allow postponing any construction errors to the build call
|
||||||
texture_id: ImTexture,
|
texture_id: ImTexture,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user