We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab35026 commit a2f5171Copy full SHA for a2f5171
1 file changed
src/error.rs
@@ -1,5 +1,5 @@
1
use std::fmt::Display;
2
-use std::io::{Error as IOError, ErrorKind};
+use std::io::Error as IOError;
3
use thiserror::Error;
4
5
use crate::messages::response::{ErrorResponse, NoticeResponse};
@@ -48,7 +48,7 @@ pub enum PgWireError {
48
49
impl From<PgWireError> for IOError {
50
fn from(e: PgWireError) -> Self {
51
- IOError::new(ErrorKind::Other, e)
+ IOError::other(e)
52
}
53
54
0 commit comments