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)) }