Skip to content

Commit 6a11d9d

Browse files
committed
Clippy
1 parent 0357575 commit 6a11d9d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

async-ssh2-lite/src/util.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use std::{
22
io::{Error as IoError, ErrorKind as IoErrorKind},
33
net::SocketAddr,
4-
path::Path,
54
};
65

76
use ssh2::Error as Ssh2Error;
@@ -16,7 +15,7 @@ pub fn ssh2_error_is_would_block(err: &Ssh2Error) -> bool {
1615
pub enum ConnectInfo {
1716
Tcp(SocketAddr),
1817
#[cfg(unix)]
19-
Unix(Box<Path>),
18+
Unix(Box<std::path::Path>),
2019
}
2120

2221
impl ConnectInfo {
@@ -25,7 +24,7 @@ impl ConnectInfo {
2524
}
2625

2726
#[cfg(unix)]
28-
pub fn with_unix(path: impl AsRef<Path>) -> Self {
27+
pub fn with_unix(path: impl AsRef<std::path::Path>) -> Self {
2928
Self::Unix(path.as_ref().into())
3029
}
3130
}

0 commit comments

Comments
 (0)