Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

clippy

Richie McIlroy962df11a3d4a
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index 6bdb84b4e..7622b69ff 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -106,11 +106,12 @@ use crate::{
};
use crate::{recording::start_recording, upload::build_video_meta};
+type FinalizingRecordingsMap =
+ std::collections::HashMap<PathBuf, (watch::Sender<bool>, watch::Receiver<bool>)>;
+
#[derive(Default)]
pub struct FinalizingRecordings {
- recordings: std::sync::Mutex<
- std::collections::HashMap<PathBuf, (watch::Sender<bool>, watch::Receiver<bool>)>,
- >,
+ recordings: std::sync::Mutex<FinalizingRecordingsMap>,
}
impl FinalizingRecordings {
diff --git a/crates/rendering/src/yuv_converter.rs b/crates/rendering/src/yuv_converter.rs
index 36d374902..a4fe8e58e 100644
--- a/crates/rendering/src/yuv_converter.rs
+++ b/crates/rendering/src/yuv_converter.rs
@@ -157,6 +157,7 @@ impl BindGroupCache {
self.cached_height = 0;
}
+ #[allow(clippy::too_many_arguments)]
fn get_or_create_nv12(
&mut self,
device: &wgpu::Device,
@@ -199,6 +200,7 @@ impl BindGroupCache {
self.nv12_bind_groups[output_index].as_ref().unwrap()
}
+ #[allow(clippy::too_many_arguments)]
fn get_or_create_yuv420p(
&mut self,
device: &wgpu::Device,