diff --git a/src/quad_gl.rs b/src/quad_gl.rs index 2776d25f..b8c15315 100644 --- a/src/quad_gl.rs +++ b/src/quad_gl.rs @@ -1015,7 +1015,12 @@ impl QuadGl { .get_quad_pipeline_mut(pipeline) .set_uniform(name, uniform); } - pub fn set_uniform_array(&mut self, pipeline: GlPipeline, name: &str, uniform: &[T]) { + pub fn set_uniform_array( + &mut self, + pipeline: GlPipeline, + name: &str, + uniform: &[T], + ) { self.state.break_batching = true; self.pipelines diff --git a/src/tobytes.rs b/src/tobytes.rs index b70df7d6..9f651c99 100644 --- a/src/tobytes.rs +++ b/src/tobytes.rs @@ -35,6 +35,11 @@ impl ToBytes for &[T; N] { impl ToBytes for &[T] { fn to_bytes(&self) -> &[u8] { - unsafe { std::slice::from_raw_parts(self.as_ptr() as *const _ as *const u8, std::mem::size_of::() * self.len()) } + unsafe { + std::slice::from_raw_parts( + self.as_ptr() as *const _ as *const u8, + std::mem::size_of::() * self.len(), + ) + } } }