mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-25 12:28:35 +00:00
Ignore clippy warning
In this case we are intentionally returning different struct for backwards-compat
This commit is contained in:
parent
2980dc01b5
commit
71a2dbd066
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user