From cb742c8a4d81eedeeaf83bd3ff6965487874d757 Mon Sep 17 00:00:00 2001 From: dbr Date: Sat, 20 Feb 2021 20:21:50 +1100 Subject: [PATCH] Additional cargo fmt --- imgui/src/input_widget.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/imgui/src/input_widget.rs b/imgui/src/input_widget.rs index 118e49f..fa952c8 100644 --- a/imgui/src/input_widget.rs +++ b/imgui/src/input_widget.rs @@ -1,7 +1,7 @@ +use bitflags::bitflags; use std::marker::PhantomData; use std::os::raw::{c_int, c_void}; use std::ptr; -use bitflags::bitflags; use crate::sys; use crate::{ImStr, ImString, Ui}; @@ -98,8 +98,7 @@ macro_rules! impl_text_flags { #[inline] pub fn callback_completion(mut self, value: bool) -> Self { - self.flags - .set(InputTextFlags::CALLBACK_COMPLETION, value); + self.flags.set(InputTextFlags::CALLBACK_COMPLETION, value); self } @@ -117,8 +116,7 @@ macro_rules! impl_text_flags { #[inline] pub fn callback_char_filter(mut self, value: bool) -> Self { - self.flags - .set(InputTextFlags::CALLBACK_CHAR_FILTER, value); + self.flags.set(InputTextFlags::CALLBACK_CHAR_FILTER, value); self } @@ -136,8 +134,7 @@ macro_rules! impl_text_flags { #[inline] pub fn no_horizontal_scroll(mut self, value: bool) -> Self { - self.flags - .set(InputTextFlags::NO_HORIZONTAL_SCROLL, value); + self.flags.set(InputTextFlags::NO_HORIZONTAL_SCROLL, value); self }