File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
rsocket-transport-unix/src Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ impl From<String> for UnixClientTransport {
97
97
98
98
impl From < & str > for UnixClientTransport {
99
99
fn from ( addr : & str ) -> UnixClientTransport {
100
- let socket_addr: String = if addr. starts_with ( "tcp ://" ) || addr. starts_with ( "TCP ://" ) {
101
- addr. chars ( ) . skip ( 6 ) . collect :: < String > ( )
100
+ let socket_addr: String = if addr. starts_with ( "unix ://" ) || addr. starts_with ( "UNIX ://" ) {
101
+ addr. chars ( ) . skip ( 7 ) . collect :: < String > ( )
102
102
} else {
103
103
addr. to_string ( )
104
104
} ;
Original file line number Diff line number Diff line change @@ -51,11 +51,6 @@ impl Drop for UnixServerTransport {
51
51
std:: fs:: remove_file ( & self . addr . as_str ( ) ) . unwrap ( ) ;
52
52
}
53
53
}
54
- // impl From<SocketAddr> for UnixServerTransport {
55
- // fn from(addr: SocketAddr) -> UnixServerTransport {
56
- // UnixServerTransport::new(addr)
57
- // }
58
- // }
59
54
60
55
impl From < String > for UnixServerTransport {
61
56
fn from ( addr : String ) -> UnixServerTransport {
You can’t perform that action at this time.
0 commit comments