We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7edf66f commit 4b6eee5Copy full SHA for 4b6eee5
1 file changed
postgres-tokio/src/error.rs
@@ -16,7 +16,7 @@ pub enum Error {
16
17
impl fmt::Display for Error {
18
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
19
- fmt.write_str(error::Error::description(self))?;
+ try!(fmt.write_str(error::Error::description(self)));
20
match *self {
21
Error::Db(ref err, _) => write!(fmt, ": {}", err),
22
Error::Io(ref err) => write!(fmt, ": {}", err),
0 commit comments