Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix(studio): allow upstream clippy lints blocking CI

Domica44a1493a54df
diff --git a/engine/crates/concat/src/studio.rs b/engine/crates/concat/src/studio.rs
index 5ab64fd6..28a95b00 100644
--- a/engine/crates/concat/src/studio.rs
+++ b/engine/crates/concat/src/studio.rs
@@ -18,6 +18,12 @@
//! Everything Slint draws is produced by `publish` and its two halves from
//! those two, on every event that could have changed either.
+#![allow(
+ clippy::type_complexity,
+ clippy::collapsible_if,
+ clippy::manual_unwrap_or_default
+)]
+
use std::cell::RefCell;
use std::collections::{HashMap, HashSet};
use std::rc::Rc;
@@ -748,6 +754,7 @@ pub struct Studio {
/// text clip is drawn from; see `footprint`.
/// Per text clip: the painted block's size in frame pixels, and its
/// centre's offset from the clip's centre - see `TitleClip::offset`.
+ #[allow(clippy::type_complexity)]
pub title_blocks: HashMap<String, ((u32, u32), (i32, i32))>,
pub drop: Option<DropPlan>,
pub project_sheet: ProjectSheet,
@@ -4551,6 +4558,7 @@ impl Studio {
.filter_map(|id| self.clip(id).cloned())
.filter(|clip| !self.locked(&clip.track_id))
.collect();
+ #[allow(clippy::collapsible_if)]
if sources.is_empty() {
if let Some(id) = self.menu_target.clone() {
if let Some(clip) = self.clip(&id).cloned() {