mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-13 22:12:12 +00:00
craft-aaf: rustfmt the roundtrip comparison added in #1108
* craft-aaf: rustfmt the roundtrip comparison added in #1108
This commit is contained in:
1 parent
70fabd64dc
commit
6cb00467a5
1 file changed
+9
-1
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user