Skip to content

Commit

Permalink
wasmtime_host: remove an unnecessary mut
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Dec 26, 2023
1 parent 19aa6ac commit b312c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host_wasmtime/src/nokhwa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl NokhwaDevice {
let requested =
RequestedFormat::new::<RgbFormat>(RequestedFormatType::AbsoluteHighestFrameRate);
println!("NokhwaDevice creating a threaded camera");
let mut camera = CallbackCamera::new(index, requested, |buffer| {
let camera = CallbackCamera::new(index, requested, |buffer| {
println!("NokhwaDevice dummy callback (this should not be called)");
})?;
Ok(Self { camera: camera })
Expand Down

0 comments on commit b312c28

Please sign in to comment.