File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,14 @@ pub enum RemoteEndpoint {
3939 /// Unix domain socket endpoint.
4040 ///
4141 /// When available, `peer` can carry SO_PEERCRED (pid/uid/gid) of the caller.
42- Unix { path : PathBuf , peer : Option < UnixPeerCred > } ,
43- Vsock { cid : u32 , port : u32 } ,
42+ Unix {
43+ path : PathBuf ,
44+ peer : Option < UnixPeerCred > ,
45+ } ,
46+ Vsock {
47+ cid : u32 ,
48+ port : u32 ,
49+ } ,
4450 Other ( String ) ,
4551}
4652
Original file line number Diff line number Diff line change 55use std:: convert:: Infallible ;
66
77#[ cfg( all( feature = "rocket" , feature = "openapi" ) ) ]
8- use crate :: openapi:: { OpenApiDoc , RenderedDoc } ;
8+ use crate :: openapi:: { OpenApiDoc , RenderedDoc } ;
99#[ cfg( all( feature = "rocket" , feature = "openapi" ) ) ]
1010use rocket:: response:: content:: { RawHtml , RawJson } ;
1111#[ cfg( all( feature = "rocket" , feature = "openapi" ) ) ]
@@ -265,10 +265,7 @@ impl From<Endpoint> for RemoteEndpoint {
265265 match endpoint {
266266 Endpoint :: Tcp ( addr) => RemoteEndpoint :: Tcp ( addr) ,
267267 Endpoint :: Quic ( addr) => RemoteEndpoint :: Quic ( addr) ,
268- Endpoint :: Unix ( path) => RemoteEndpoint :: Unix {
269- path,
270- peer : None ,
271- } ,
268+ Endpoint :: Unix ( path) => RemoteEndpoint :: Unix { path, peer : None } ,
272269 _ => {
273270 let address = endpoint. to_string ( ) ;
274271 match address. parse :: < VsockEndpoint > ( ) {
You can’t perform that action at this time.
0 commit comments