Add must_use to Image

This commit is contained in:
Tad Hardesty 2018-09-10 01:25:20 -07:00
parent e9b1552f05
commit e1a4bbc638

View File

@ -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,