From 294c687d5dc81a13e1fe6ed00927193a6c013ebd Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Sat, 11 Sep 2021 21:26:06 +0200 Subject: [PATCH] Formating --- src/example_client.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/example_client.rs b/src/example_client.rs index cc38cd8..d55d45b 100644 --- a/src/example_client.rs +++ b/src/example_client.rs @@ -211,7 +211,13 @@ impl Client for ExampleClient { .opened(&mut show_window) .build(&ui, || { ui.input_int(im_str!("id"), &mut id).build(); - id = if id < 0 { 0 } else if id > max { max } else { id }; + id = if id < 0 { + 0 + } else if id > max { + max + } else { + id + }; let mut selected_mut = vec![&mut self.models[id as usize].transform]; >::render_mut(