mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-22 16:25:36 +00:00
fix warning "variable does not need to be mutable"
This commit is contained in:
@ -75,7 +75,7 @@ impl CameraStream {
|
||||
|
||||
// create raw buffer where openvr can store it's data into
|
||||
let mut buffer = Vec::<u8>::with_capacity(size.buffer as usize);
|
||||
let mut raw_buffer = buffer.as_mut_ptr();
|
||||
let raw_buffer = buffer.as_mut_ptr();
|
||||
mem::forget(buffer);
|
||||
|
||||
// create header
|
||||
|
Reference in New Issue
Block a user