Skip to content

Commit 8213447

Browse files
committed
Added From<(Ipv4Addr, u16)> for Socket<'static>
Signed-off-by: Jiahao XU <[email protected]>
1 parent 018bade commit 8213447

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/changelog.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use crate::*;
1010
/// - `From<PathBuf> for Socket<'static>`
1111
/// - `From<Box<Path>> for Socket<'static>`
1212
/// - `From<(IpAddr, u16)> for Socket<'static>`
13+
/// - `From<(Ipv4Addr, u16)> for Socket<'static>`
1314
///
1415
/// ## Changed
1516
/// - [`Session::request_port_forward`] now takes `impl Into<...>`

src/port_forwarding.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ macro_rules! impl_from_addr {
6464
}
6565

6666
impl_from_addr!(net::IpAddr);
67+
impl_from_addr!(net::Ipv4Addr);
6768

6869
impl<'a> From<Cow<'a, Path>> for Socket<'a> {
6970
fn from(path: Cow<'a, Path>) -> Self {

0 commit comments

Comments
 (0)