From e1a4bbc6386a364fa7fd4b7ffb945ff8edd4b94d Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Mon, 10 Sep 2018 01:25:20 -0700 Subject: [PATCH] Add must_use to Image --- src/image.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/image.rs b/src/image.rs index ab44f29..db81e27 100644 --- a/src/image.rs +++ b/src/image.rs @@ -29,6 +29,7 @@ impl From<*mut c_void> for ImTexture { /// See [`Ui::image`]. /// /// Create your image using the builder pattern then [`Image::build`] it. +#[must_use] pub struct Image<'ui> { /// we use Result to allow postponing any construction errors to the build call texture_id: ImTexture,