mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-25 12:28:35 +00:00
FIx clippy note on #[deprecated(...)]
This commit is contained in:
parent
8006372580
commit
0ffa2d1414
@ -288,19 +288,19 @@ impl Ui {
|
|||||||
pub struct Id(pub(crate) u32);
|
pub struct Id(pub(crate) u32);
|
||||||
|
|
||||||
impl Id {
|
impl Id {
|
||||||
#[deprecated(since = "0.8", note = "Use ui.new_id_int(...)")]
|
#[deprecated(since = "0.8.0", note = "Use ui.new_id_int(...)")]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
pub fn Int(input: i32, ui: &Ui) -> Self {
|
pub fn Int(input: i32, ui: &Ui) -> Self {
|
||||||
ui.new_id_int(input)
|
ui.new_id_int(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since = "0.8", note = "Use ui.new_id_str(...)")]
|
#[deprecated(since = "0.8.0", note = "Use ui.new_id_str(...)")]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
pub fn Str(input: impl AsRef<str>, ui: &Ui) -> Self {
|
pub fn Str(input: impl AsRef<str>, ui: &Ui) -> Self {
|
||||||
ui.new_id_str(input)
|
ui.new_id_str(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(since = "0.8", note = "Use ui.new_id_ptr(...)")]
|
#[deprecated(since = "0.8.0", note = "Use ui.new_id_ptr(...)")]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
pub fn Ptr<T>(input: &T, ui: &Ui) -> Self {
|
pub fn Ptr<T>(input: &T, ui: &Ui) -> Self {
|
||||||
ui.new_id_ptr(input)
|
ui.new_id_ptr(input)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user