Skip to content

Commit a2f5171

Browse files
committed
fix: lint error on nightly
1 parent ab35026 commit a2f5171

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::fmt::Display;
2-
use std::io::{Error as IOError, ErrorKind};
2+
use std::io::Error as IOError;
33
use thiserror::Error;
44

55
use crate::messages::response::{ErrorResponse, NoticeResponse};
@@ -48,7 +48,7 @@ pub enum PgWireError {
4848

4949
impl From<PgWireError> for IOError {
5050
fn from(e: PgWireError) -> Self {
51-
IOError::new(ErrorKind::Other, e)
51+
IOError::other(e)
5252
}
5353
}
5454

0 commit comments

Comments
 (0)