aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/tests
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/tests')
-rw-r--r--components/gfx/tests/font_context.rs3
-rw-r--r--components/gfx/tests/font_template.rs3
2 files changed, 4 insertions, 2 deletions
diff --git a/components/gfx/tests/font_context.rs b/components/gfx/tests/font_context.rs
index 8608f38329e..ba9e7afbdb0 100644
--- a/components/gfx/tests/font_context.rs
+++ b/components/gfx/tests/font_context.rs
@@ -119,7 +119,8 @@ fn font_family(names: Vec<&str>) -> FontFamily {
name: Atom::from(name),
syntax: FamilyNameSyntax::Quoted,
})
- }).collect();
+ })
+ .collect();
FontFamily(FontFamilyList::new(names.into_boxed_slice()))
}
diff --git a/components/gfx/tests/font_template.rs b/components/gfx/tests/font_template.rs
index a6caea2f375..6e7fa8aea5a 100644
--- a/components/gfx/tests/font_template.rs
+++ b/components/gfx/tests/font_template.rs
@@ -41,7 +41,8 @@ fn test_font_template_descriptor() {
let mut template = FontTemplate::new(
Atom::from(filename),
Some(file.bytes().map(|b| b.unwrap()).collect()),
- ).unwrap();
+ )
+ .unwrap();
let context = FontContextHandle::new();