Use return value: try!() around write!()
This commit is contained in:
parent
e233073305
commit
2ddca14ef5
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue