From 6706d580160f4ed9b58cd1b9d34e24021e781cec Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Fri, 8 Sep 2023 15:40:46 +0100 Subject: [PATCH] Remove uneccesary mut --- src/gfx/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/buffer.rs b/src/gfx/buffer.rs index f09bf37..61affe4 100644 --- a/src/gfx/buffer.rs +++ b/src/gfx/buffer.rs @@ -33,7 +33,7 @@ impl<'a> BulkBufferBuilder<'a> { self } - pub fn with_bytemuck_buffer(mut self, label: &'a str, contents: &'a [A]) -> Self { + pub fn with_bytemuck_buffer(self, label: &'a str, contents: &'a [A]) -> Self { self.with_buffer(label, bytemuck::cast_slice(contents)) }