diff --git a/examples/skeletal-anim/src/main.rs b/examples/skeletal-anim/src/main.rs index 3e137a1..04e765b 100644 --- a/examples/skeletal-anim/src/main.rs +++ b/examples/skeletal-anim/src/main.rs @@ -385,8 +385,7 @@ impl Model { assert!(indices.index_count() < u16::MAX as usize); - let indices = indices - .as_u16().unwrap(); + let indices = indices.as_u16().unwrap(); let index_data = cast_slice(&indices); let vertex_data = part.vertex_data(); diff --git a/src/driver/buffer.rs b/src/driver/buffer.rs index 34f79d8..6d5e9f0 100644 --- a/src/driver/buffer.rs +++ b/src/driver/buffer.rs @@ -333,7 +333,10 @@ impl Buffer { /// # Ok(()) } /// ``` pub fn mapped_slice(this: &Self) -> &[u8] { - debug_assert!(this.info.can_map, "Buffer is not mappable - create using can_map flag"); + debug_assert!( + this.info.can_map, + "Buffer is not mappable - create using can_map flag" + ); &this.allocation.as_ref().unwrap().mapped_slice().unwrap()[0..this.info.size as usize] } @@ -367,7 +370,10 @@ impl Buffer { /// # Ok(()) } /// ``` pub fn mapped_slice_mut(this: &mut Self) -> &mut [u8] { - debug_assert!(this.info.can_map, "Buffer is not mappable - create using can_map flag"); + debug_assert!( + this.info.can_map, + "Buffer is not mappable - create using can_map flag" + ); &mut this .allocation