aquatic_ws: fix some clippy warnings

This commit is contained in:
Joakim Frostegård 2020-08-02 00:07:12 +02:00
parent 8fc09cb130
commit aabdf76a5d
3 changed files with 21 additions and 25 deletions

View file

@ -68,11 +68,8 @@ pub fn run(config: Config) -> anyhow::Result<()> {
if let Some(statuses) = socket_worker_statuses.try_lock(){
for opt_status in statuses.iter(){
match opt_status {
Some(Err(err)) => {
return Err(::anyhow::anyhow!(err.to_owned()));
},
_ => {},
if let Some(Err(err)) = opt_status {
return Err(::anyhow::anyhow!(err.to_owned()));
}
}
@ -126,7 +123,7 @@ pub fn create_tls_acceptor(
.context("Couldn't read pkcs12 identity file")?;
let identity = Identity::from_pkcs12(
&mut identity_bytes,
&identity_bytes,
&config.network.tls_pkcs12_password
).context("Couldn't parse pkcs12 identity file")?;