Formatted with rustfmt.

This commit is contained in:
Maurice Gilden 2017-02-18 11:49:30 +01:00
parent f98f11fabb
commit e685037314

View File

@ -35,7 +35,7 @@ impl<'p> ProgressBar<'p> {
}
/// Sets the size of the progress bar. Negative values will automatically
/// align to the end of the axis, zero will let the progress bar choose a
/// align to the end of the axis, zero will let the progress bar choose a
/// size and positive values will use the given size.
#[inline]
pub fn size(mut self, size: ImVec2) -> Self {
@ -49,8 +49,7 @@ impl<'p> ProgressBar<'p> {
unsafe {
imgui_sys::igProgressBar(self.fraction,
&self.size,
self.overlay_text.map(|x| x.as_ptr()).unwrap_or(ptr::null())
);
self.overlay_text.map(|x| x.as_ptr()).unwrap_or(ptr::null()));
}
}
}
}