cleanup
Error::from is already a function taking 1 parameter, there's no need to wrap it with `|e| Error::from(e)`. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -69,7 +69,7 @@ fn run() -> Result<(), Error> {
|
||||
let acceptor = std::sync::Arc::new(tokio_tls::TlsAcceptor::from(acceptor));
|
||||
let connections = listener
|
||||
.incoming()
|
||||
.map_err(|e| Error::from(e))
|
||||
.map_err(Error::from)
|
||||
.and_then(move |sock| acceptor.accept(sock).map_err(|e| e.into()))
|
||||
.then(|r| match r {
|
||||
// accept()s can fail here with an Err() when eg. the client rejects
|
||||
|
Reference in New Issue
Block a user