Skip to content

Commit

Permalink
Fix future clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dbr authored and ctrlcctrlv committed Sep 24, 2022
1 parent 17846bc commit 6a5e613
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions imgui/src/widget/drag.rs
Expand Up @@ -253,15 +253,14 @@ where
#[doc(alias = "DragIntRange2")]
pub fn build(self, ui: &Ui, min: &mut i32, max: &mut i32) -> bool {
unsafe {
let label;
let mut display_format = std::ptr::null();
let mut max_display_format = std::ptr::null();

// we do this ourselves the long way...
let buffer = &mut *ui.scratch_buffer().get();
buffer.refresh_buffer();

label = buffer.push(self.label);
let label = buffer.push(self.label);
if let Some(v) = self.display_format {
display_format = buffer.push(v);
}
Expand Down

0 comments on commit 6a5e613

Please sign in to comment.