Use try not ?

This commit is contained in:
Steven Fackler 2016-12-20 19:53:37 -08:00
parent 7edf66f7f0
commit 4b6eee560d

View File

@ -16,7 +16,7 @@ pub enum Error {
impl fmt::Display for Error {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.write_str(error::Error::description(self))?;
try!(fmt.write_str(error::Error::description(self)));
match *self {
Error::Db(ref err, _) => write!(fmt, ": {}", err),
Error::Io(ref err) => write!(fmt, ": {}", err),