Fix formatting

This commit is contained in:
Joonas Javanainen 2017-11-04 10:44:52 +02:00
parent 6ac40b1100
commit 42150784cb
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -292,9 +292,7 @@ impl<'ui, 'p> ColorPicker<'ui, 'p> {
if let EditableColor::Float3(_) = self.value {
self.flags.insert(ImGuiColorEditFlags::NoAlpha);
}
let ref_color = self.ref_color.map(|c| c.as_ptr()).unwrap_or(
ptr::null(),
);
let ref_color = self.ref_color.map(|c| c.as_ptr()).unwrap_or(ptr::null());
unsafe {
imgui_sys::igColorPicker4(
self.label.as_ptr(),