diff --git a/Cargo.toml b/Cargo.toml index b67ca06..b175927 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bevy_light_field" description = "rust bevy light field array tooling" -version = "0.1.0" +version = "0.2.0" edition = "2021" authors = ["mosure "] license = "MIT" diff --git a/src/stream.rs b/src/stream.rs index 8efd50c..0ce7905 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -225,8 +225,8 @@ impl RtspStream { assert_eq!(u32::from(sink.width), image_size.0 as u32, "frame width mismatch - stream size changes are not supported yet."); assert_eq!(u32::from(sink.height), image_size.1 as u32, "frame height mismatch - stream size changes are not supported yet."); - let mut data = sink.data.as_mut(); - frame.write_rgba8(&mut data); + let data = sink.data.as_mut(); + frame.write_rgba8(data); }, None => { let mut data = vec![0; image_size.0 * image_size.1 * 4];