Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Lint the merged community PRs: no drop of a borrowing closure (#458), json only where drops import (#447)

Claude5a8cd76b7726
diff --git a/crates/automation/src/tests.rs b/crates/automation/src/tests.rs
index dd02cb66f..51d15694c 100644
--- a/crates/automation/src/tests.rs
+++ b/crates/automation/src/tests.rs
@@ -1010,7 +1010,6 @@ fn second_render_is_refused_and_edits_apply_during_a_render() {
send(call(9, "doc_inspect", json!({})));
let doc = next();
assert!(doc.to_string().contains("Added while rendering"), "{doc}");
- drop(send);
drop(in_w);
server.join().unwrap();
let _ = std::fs::remove_dir_all(&dir);
@@ -1110,7 +1109,6 @@ fn render_progress_and_cancel() {
assert!(!b.exists(), "partial output deleted");
assert!(std::path::Path::new(&a).exists(), "completed earlier queue item is retained");
assert_eq!(v["items"][1]["statusLabel"], "User Stopped", "{v}");
- drop(send);
drop(in_w);
server.join().unwrap();
let _ = std::fs::remove_dir_all(&dir);
diff --git a/crates/ui-egui/src/prefs_live.rs b/crates/ui-egui/src/prefs_live.rs
index 85c260130..ed497dc44 100644
--- a/crates/ui-egui/src/prefs_live.rs
+++ b/crates/ui-egui/src/prefs_live.rs
@@ -4,7 +4,9 @@
//! output (a second window showing the composition frame, Mercury Transmit-style).
use egui::{Color32, Rect};
-use serde_json::{Value, json};
+use serde_json::Value;
+#[cfg(not(target_arch = "wasm32"))]
+use serde_json::json;
use crate::EffectcraftApp;
use crate::frames::FrameKey;