Skip to content

Commit

Permalink
Damn you, rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekkio committed Sep 19, 2020
1 parent dfbe423 commit 646d7d6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions imgui-examples/examples/slider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ fn example_2(ui: &Ui, state: &mut State) {
.position([20.0, 120.0], Condition::Appearing);
w.build(&ui, || {
ui.text("You can easily build a slider group from an array of values:");
Slider::new(im_str!("[u8; 4]"))
.build_array(&ui, &mut state.array);
Slider::new(im_str!("[u8; 4]")).build_array(&ui, &mut state.array);

ui.text("You don't need to use arrays with known length; arbitrary slices can be used:");
let slice: &mut [u8] = &mut state.array[1..=2];
Slider::new(im_str!("subslice"))
.build_array(&ui, slice);
Slider::new(im_str!("subslice")).build_array(&ui, slice);
});
}

Expand Down

0 comments on commit 646d7d6

Please sign in to comment.