mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
style(tests): apply rustfmt corrections to layer export coverage
This commit is contained in:
1 parent
5452f796a2
commit
f0fb004385
1 file changed
+2
-2
@@ -570,7 +570,6 @@ fn layers_to_files_writes_each_visible_layer() {
|
||||
assert_eq!(r["files"].as_array().unwrap().len(), 3);
|
||||
}
|
||||
|
||||
|
||||
#[test]
|
||||
fn layers_to_files_can_trim_transparent_margins_without_changing_the_document() {
|
||||
let dir = tmp("layers-trim");
|
||||
@@ -608,7 +607,8 @@ fn streamed_layer_export_respects_trim() {
|
||||
let names = super::export_layers_with(&s, &json!({"trim": true, "format": "png"}), |name, bytes| {
|
||||
encoded.push((name.to_string(), bytes.to_vec()));
|
||||
Ok(())
|
||||
}).unwrap();
|
||||
})
|
||||
.unwrap();
|
||||
assert_eq!(names.len(), encoded.len());
|
||||
let cropped = photocraft_io::import(&encoded[0].0, &encoded[0].1).unwrap().document;
|
||||
assert_eq!((cropped.size.width, cropped.size.height), (4, 5));
|
||||
|
||||
Reference in new issue
Block a user