aquatic_http, aquatic_common_tcp: fix some clippy warnings

This commit is contained in:
Joakim Frostegård 2020-07-05 20:22:03 +02:00
parent 8269ae2994
commit b65297195a
5 changed files with 8 additions and 11 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()));
}
}