FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
rustfmt after merging #1043 and #972
Brandon Thomascc9206cb0292
diff --git a/crates/engine/src/commands.rs b/crates/engine/src/commands.rsindex 06a8d5a07..eb966d67c 100644--- a/crates/engine/src/commands.rs+++ b/crates/engine/src/commands.rs@@ -2162,8 +2162,24 @@ fn build() -> Vec<CommandSpec> {Ok(json!({"item": item.0}))}),// ================= Markers =================- cmd!("markers.markIn", "Mark In", ["Markers"], Some("I"), r#"{"time":ticks?,"frame":i64?,"seconds":f64?,"timecode":str?,"target":"program|source"}"#, always, |s, p| mark(s, p, true)),- cmd!("markers.markOut", "Mark Out", ["Markers"], Some("O"), r#"{"time":ticks?,"frame":i64?,"seconds":f64?,"timecode":str?,"target":"program|source"}"#, always, |s, p| mark(s, p, false)),+ cmd!(+ "markers.markIn",+ "Mark In",+ ["Markers"],+ Some("I"),+ r#"{"time":ticks?,"frame":i64?,"seconds":f64?,"timecode":str?,"target":"program|source"}"#,+ always,+ |s, p| mark(s, p, true)+ ),+ cmd!(+ "markers.markOut",+ "Mark Out",+ ["Markers"],+ Some("O"),+ r#"{"time":ticks?,"frame":i64?,"seconds":f64?,"timecode":str?,"target":"program|source"}"#,+ always,+ |s, p| mark(s, p, false)+ ),cmd!("markers.markClip", "Mark Clip", ["Markers"], Some("X"), "{}", has_seq, |s, _| {let t = s.playhead();let seq = s.active_sequence().ok_or(EngineError::NoSequence)?;diff --git a/crates/engine/src/sequence_tools.rs b/crates/engine/src/sequence_tools.rsindex 92ef23200..f871f0118 100644--- a/crates/engine/src/sequence_tools.rs+++ b/crates/engine/src/sequence_tools.rs@@ -31,7 +31,9 @@ use filmcraft_project::{AudioChannels, ClipId, ItemId, Label, Marker, MarkerId,use filmcraft_time::{Tick, TimeRange};use serde_json::{Value, json};-use crate::commands::{CommandSpec, always, bad, bool_p, clips_p, has_seq, marker_color_p, sequence_time_p, source_mark_time, str_p, time_p, track_p, with_links};+use crate::commands::{+ CommandSpec, always, bad, bool_p, clips_p, has_seq, marker_color_p, sequence_time_p, source_mark_time, str_p, time_p, track_p, with_links,+};use crate::{EngineError, Result, Session};type Run = fn(&mut Session, &Value) -> Result<Value>;