craft-aaf: rustfmt the roundtrip comparison added in #1108

* craft-aaf: rustfmt the roundtrip comparison added in #1108
This commit is contained in:
Dylan M. Taylor authored and GitHub committed 2026-11-12 07:49:33 -05:00
1 parent 70fabd64dc
commit 6cb00467a5
1 file changed
+9 -1
+9 -1
View File
@@ -93,7 +93,15 @@ fn aaf_round_trips_the_edit_at_every_rate() {
// what was read, written again, reads as the same edit (mob ids, and so source keys, are new;
// a writer generates fresh format identifiers and never preserves `aaf_mob_id`)
let again = read_clean(&aaf_bytes(&back, small), true);
let no_ids = |c: &[Composition]| c.iter().cloned().map(|mut c| { c.aaf_mob_id = None; c }).collect::<Vec<_>>();
let no_ids = |c: &[Composition]| {
c.iter()
.cloned()
.map(|mut c| {
c.aaf_mob_id = None;
c
})
.collect::<Vec<_>>()
};
assert_eq!((shape(&again), no_ids(&again.compositions)), (shape(&back), no_ids(&back.compositions)), "{rate}");
}
}