Skip to content

Commit 4b6eee5

Browse files
committed
Use try not ?
1 parent 7edf66f commit 4b6eee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres-tokio/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub enum Error {
1616

1717
impl fmt::Display for Error {
1818
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
19-
fmt.write_str(error::Error::description(self))?;
19+
try!(fmt.write_str(error::Error::description(self)));
2020
match *self {
2121
Error::Db(ref err, _) => write!(fmt, ": {}", err),
2222
Error::Io(ref err) => write!(fmt, ": {}", err),

0 commit comments

Comments
 (0)