Use return value: try!() around write!()

This commit is contained in:
Matthias Beyer 2016-01-05 16:17:54 +01:00
parent e233073305
commit 2ddca14ef5

View file

@ -60,7 +60,7 @@ impl Into<String> for FileHash {
impl Display for FileHash {
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
write!(fmt, "{}", self.hash);
try!(write!(fmt, "{}", self.hash));
Ok(())
}