mirror of https://github.com/fafhrd91/actix-net
				
				
				
			clippy
This commit is contained in:
		
							parent
							
								
									4d3c11f4c9
								
							
						
					
					
						commit
						3aa1a6294f
					
				| 
						 | 
				
			
			@ -78,7 +78,7 @@ where
 | 
			
		|||
                Ok(())
 | 
			
		||||
            }
 | 
			
		||||
            Err(err) => {
 | 
			
		||||
                error!("can not convert to an async TCP stream: {}", err);
 | 
			
		||||
                error!("can not convert to an async TCP stream: {err}");
 | 
			
		||||
                Err(())
 | 
			
		||||
            }
 | 
			
		||||
        })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -104,7 +104,7 @@ impl fmt::Debug for MioListener {
 | 
			
		|||
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
 | 
			
		||||
        match *self {
 | 
			
		||||
            MioListener::Tcp(ref lst) => write!(f, "{:?}", lst),
 | 
			
		||||
            #[cfg(all(unix))]
 | 
			
		||||
            #[cfg(unix)]
 | 
			
		||||
            MioListener::Uds(ref lst) => write!(f, "{:?}", lst),
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -697,7 +697,10 @@ impl Future for ServerWorker {
 | 
			
		|||
                match ready!(this.conn_rx.poll_recv(cx)) {
 | 
			
		||||
                    Some(msg) => {
 | 
			
		||||
                        let guard = this.counter.guard();
 | 
			
		||||
                        let _ = this.services[msg.token].service.call((guard, msg.io));
 | 
			
		||||
                        let _ = this.services[msg.token]
 | 
			
		||||
                            .service
 | 
			
		||||
                            .call((guard, msg.io))
 | 
			
		||||
                            .into_inner();
 | 
			
		||||
                    }
 | 
			
		||||
                    None => return Poll::Ready(()),
 | 
			
		||||
                };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue