From f5e9382fbe17f928e7138445415622b328cba889 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Sat, 2 Sep 2017 20:09:47 +0100 Subject: [PATCH] Removed explicit returns in favour of the rustier implicit style --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index afd8594..6bdfb57 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) } } }