diff --git a/crates/engine/src/clip_group_file.rs b/crates/engine/src/clip_group_file.rs index 9063400e..35bb2df3 100644 --- a/crates/engine/src/clip_group_file.rs +++ b/crates/engine/src/clip_group_file.rs @@ -258,7 +258,8 @@ mod tests { let r = e.execute("file.import_clip_groups", &json!({"path": p.to_string_lossy()})).unwrap(); let ids: Vec<_> = r["clips"].as_array().unwrap().iter().filter_map(serde_json::Value::as_u64).collect(); assert_eq!(ids.len(), 2); - let spans: Vec<_> = ids.iter().filter_map(|id| e.session().find_clip(soundcraft_model::ClipId(*id)).map(|(_, c)| (c.start, c.length))).collect(); + let spans: Vec<_> = + ids.iter().filter_map(|id| e.session().find_clip(soundcraft_model::ClipId(*id)).map(|(_, c)| (c.start, c.length))).collect(); // The group lands at the insertion point; its clips keep their relative positions and overlap. let at = spans.first().map_or(0, |s| s.0); assert_eq!(spans, vec![(at, 1000), (at + 600, 1000)]);