Use try not ?
This commit is contained in:
parent
7edf66f7f0
commit
4b6eee560d
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user