mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Removed explicit returns in favour of the rustier implicit style
This commit is contained in:
parent
206056fc9f
commit
f5e9382fbe
@ -734,7 +734,7 @@ impl<'ui> Ui<'ui> {
|
||||
value: &'p mut i32,
|
||||
wanted: i32) -> bool {
|
||||
unsafe {
|
||||
return imgui_sys::igRadioButton(label.as_ptr(), value, wanted);
|
||||
imgui_sys::igRadioButton(label.as_ptr(), value, wanted)
|
||||
}
|
||||
}
|
||||
|
||||
@ -756,7 +756,7 @@ impl<'ui> Ui<'ui> {
|
||||
/// ```
|
||||
pub fn radio_button_bool<'p>(&self, label: &'p ImStr, value: bool) -> bool {
|
||||
unsafe {
|
||||
return imgui_sys::igRadioButtonBool(label.as_ptr(), value);
|
||||
imgui_sys::igRadioButtonBool(label.as_ptr(), value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user