diff options
author | Joe Wilm <joe@jwilm.com> | 2016-12-16 22:29:35 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-16 22:29:35 -0800 |
commit | 0421012c2d82ce2703bb122fd395d669a28f7d49 (patch) | |
tree | 3d7ce6d1a4872e48dc713f210942bad891fa75af /font | |
parent | dc918ae71a5e6c78a77994d7ce106a2253918c54 (diff) | |
download | alacritty-0421012c2d82ce2703bb122fd395d669a28f7d49.tar.gz alacritty-0421012c2d82ce2703bb122fd395d669a28f7d49.zip |
Replace remaining use of `try!` with `?`
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(()) |