Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasmtime_host: remove an unnecessary mut
Browse files Browse the repository at this point in the history
yamt committed Dec 21, 2023
1 parent 7519b6b commit 3f18251
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
@@ -30,7 +30,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 })

0 comments on commit 3f18251

Please sign in to comment.