diff --git a/src/render/draw_data.rs b/src/render/draw_data.rs index 8150ef9..e9c7b14 100644 --- a/src/render/draw_data.rs +++ b/src/render/draw_data.rs @@ -225,8 +225,8 @@ implement_vertex!(DrawVert, pos, uv, col); #[cfg(feature = "gfx")] mod gfx_support { - use gfx::*; use super::DrawVert; + use gfx::*; // gfx doesn't provide a macro to implement vertex structure for an existing struct, so we // create a dummy vertex with the same memory layout using gfx macros, and delegate query(name) @@ -249,14 +249,8 @@ mod gfx_support { #[test] fn test_dummy_memory_layout() { use std::mem; - assert_eq!( - mem::size_of::(), - mem::size_of::() - ); - assert_eq!( - mem::align_of::(), - mem::align_of::() - ); + assert_eq!(mem::size_of::(), mem::size_of::()); + assert_eq!(mem::align_of::(), mem::align_of::()); use memoffset::offset_of; macro_rules! assert_field_offset { ($l:ident, $r:ident) => { diff --git a/src/window_draw_list.rs b/src/window_draw_list.rs index e00608e..06dbde3 100644 --- a/src/window_draw_list.rs +++ b/src/window_draw_list.rs @@ -62,7 +62,8 @@ pub struct WindowDrawList<'ui> { _phantom: PhantomData<&'ui Ui<'ui>>, } -static WINDOW_DRAW_LIST_LOADED: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false); +static WINDOW_DRAW_LIST_LOADED: std::sync::atomic::AtomicBool = + std::sync::atomic::AtomicBool::new(false); impl<'ui> Drop for WindowDrawList<'ui> { fn drop(&mut self) {