Removed explicit returns in favour of the rustier implicit style

This commit is contained in:
Nick Palmer 2017-09-02 20:09:47 +01:00
parent 206056fc9f
commit f5e9382fbe
No known key found for this signature in database
GPG Key ID: E4E523DDAAA2B0D4

View File

@ -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)
}
}
}