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 {
9797
9898impl From < & str > for UnixClientTransport {
9999 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 > ( )
102102 } else {
103103 addr. to_string ( )
104104 } ;
Original file line number Diff line number Diff line change @@ -51,11 +51,6 @@ impl Drop for UnixServerTransport {
5151 std:: fs:: remove_file ( & self . addr . as_str ( ) ) . unwrap ( ) ;
5252 }
5353}
54- // impl From<SocketAddr> for UnixServerTransport {
55- // fn from(addr: SocketAddr) -> UnixServerTransport {
56- // UnixServerTransport::new(addr)
57- // }
58- // }
5954
6055impl From < String > for UnixServerTransport {
6156 fn from ( addr : String ) -> UnixServerTransport {
You can’t perform that action at this time.
0 commit comments