Additional cargo fmt

This commit is contained in:
dbr 2021-02-20 20:21:50 +11:00
parent 6bf75335ed
commit cb742c8a4d

View File

@ -1,7 +1,7 @@
use bitflags::bitflags;
use std::marker::PhantomData; use std::marker::PhantomData;
use std::os::raw::{c_int, c_void}; use std::os::raw::{c_int, c_void};
use std::ptr; use std::ptr;
use bitflags::bitflags;
use crate::sys; use crate::sys;
use crate::{ImStr, ImString, Ui}; use crate::{ImStr, ImString, Ui};
@ -98,8 +98,7 @@ macro_rules! impl_text_flags {
#[inline] #[inline]
pub fn callback_completion(mut self, value: bool) -> Self { pub fn callback_completion(mut self, value: bool) -> Self {
self.flags self.flags.set(InputTextFlags::CALLBACK_COMPLETION, value);
.set(InputTextFlags::CALLBACK_COMPLETION, value);
self self
} }
@ -117,8 +116,7 @@ macro_rules! impl_text_flags {
#[inline] #[inline]
pub fn callback_char_filter(mut self, value: bool) -> Self { pub fn callback_char_filter(mut self, value: bool) -> Self {
self.flags self.flags.set(InputTextFlags::CALLBACK_CHAR_FILTER, value);
.set(InputTextFlags::CALLBACK_CHAR_FILTER, value);
self self
} }
@ -136,8 +134,7 @@ macro_rules! impl_text_flags {
#[inline] #[inline]
pub fn no_horizontal_scroll(mut self, value: bool) -> Self { pub fn no_horizontal_scroll(mut self, value: bool) -> Self {
self.flags self.flags.set(InputTextFlags::NO_HORIZONTAL_SCROLL, value);
.set(InputTextFlags::NO_HORIZONTAL_SCROLL, value);
self self
} }