diff options
Diffstat (limited to 'font')
-rw-r--r-- | font/src/ft/list_fonts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/font/src/ft/list_fonts.rs b/font/src/ft/list_fonts.rs index c9eccec7..1dc716d5 100644 --- a/font/src/ft/list_fonts.rs +++ b/font/src/ft/list_fonts.rs @@ -105,9 +105,9 @@ pub struct Family { impl fmt::Display for Family { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - try!(write!(f, "{}: ", self.name)); + write!(f, "{}: ", self.name)?; for (k, _v) in &self.variants { - try!(write!(f, "{}, ", k)); + write!(f, "{}, ", k)?; } Ok(()) |