Ignore clippy warning

In this case we are intentionally returning different struct for backwards-compat
This commit is contained in:
dbr 2023-01-01 17:52:24 +10:30
parent 2980dc01b5
commit 71a2dbd066

View File

@ -101,6 +101,7 @@ pub struct ImageButtonDeprecated {
impl ImageButton<'static, ()> { impl ImageButton<'static, ()> {
/// Creates a new image button builder with the given texture and size /// Creates a new image button builder with the given texture and size
#[deprecated(since = "0.10.0", note = "Use `ui.image_button_config(...)` instead")] #[deprecated(since = "0.10.0", note = "Use `ui.image_button_config(...)` instead")]
#[allow(clippy::new_ret_no_self)]
pub fn new(texture_id: TextureId, size: impl Into<MintVec2>) -> ImageButtonDeprecated { pub fn new(texture_id: TextureId, size: impl Into<MintVec2>) -> ImageButtonDeprecated {
ImageButtonDeprecated { ImageButtonDeprecated {
texture_id, texture_id,