feat: Numerous camera fixes (pausing, stopping, UX bits, etc) #4729
ci.yml
on: pull_request
Detect Changes
6s
Typecheck
1m 15s
Format (Biome)
9s
Format (Cargo)
13s
Lint (Biome)
12s
Verify Tauri plugin versions
Matrix: Build Desktop
Matrix: Clippy
Matrix: Rust cache
Annotations
4 warnings
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
apps/desktop/src-tauri/src/windows.rs#L836
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> apps/desktop/src-tauri/src/windows.rs:836:13
|
836 | / match apply_camera_input(app_handle.clone(), app_handle.state(), Some(camera)).await {
837 | | Err(err) => warn!(%err, "Failed to restore camera input"),
838 | | Ok(_) => {}
839 | | }
| |_____________^ help: try: `if let Err(err) = apply_camera_input(app_handle.clone(), app_handle.state(), Some(camera)).await { warn!(%err, "Failed to restore camera input") }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#single_match
|
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
apps/desktop/src-tauri/src/windows.rs#L829
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> apps/desktop/src-tauri/src/windows.rs:829:13
|
829 | / match apply_mic_input(app_handle.state(), Some(mic)).await {
830 | | Err(err) => warn!(%err, "Failed to restore microphone input"),
831 | | Ok(_) => {}
832 | | }
| |_____________^ help: try: `if let Err(err) = apply_mic_input(app_handle.state(), Some(mic)).await { warn!(%err, "Failed to restore microphone input") }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#single_match
|
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
apps/desktop/src-tauri/src/recording.rs#L382
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> apps/desktop/src-tauri/src/recording.rs:382:9
|
382 | / match apply_camera_input(app.clone(), app.state(), Some(camera)).await {
383 | | Err(err) => warn!(%err, "Failed to restore camera input"),
384 | | Ok(_) => {}
385 | | }
| |_________^ help: try: `if let Err(err) = apply_camera_input(app.clone(), app.state(), Some(camera)).await { warn!(%err, "Failed to restore camera input") }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#single_match
|
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
apps/desktop/src-tauri/src/recording.rs#L375
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> apps/desktop/src-tauri/src/recording.rs:375:9
|
375 | / match apply_mic_input(app.state(), Some(mic)).await {
376 | | Err(err) => warn!(%err, "Failed to restore microphone input"),
377 | | Ok(_) => {}
378 | | }
| |_________^ help: try: `if let Err(err) = apply_mic_input(app.state(), Some(mic)).await { warn!(%err, "Failed to restore microphone input") }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#single_match
= note: `#[warn(clippy::single_match)]` on by default
|