From 2ddca14ef5478c95fe92c9b60ca67adaeeb890ce Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 5 Jan 2016 16:17:54 +0100 Subject: [PATCH] Use return value: try!() around write!() --- src/storage/file/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/file/hash.rs b/src/storage/file/hash.rs index 9b55ed60..ff42bee1 100644 --- a/src/storage/file/hash.rs +++ b/src/storage/file/hash.rs @@ -60,7 +60,7 @@ impl Into for FileHash { impl Display for FileHash { fn fmt(&self, fmt: &mut Formatter) -> fmt::Result { - write!(fmt, "{}", self.hash); + try!(write!(fmt, "{}", self.hash)); Ok(()) }