mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic_ws: fix some clippy warnings
This commit is contained in:
parent
8fc09cb130
commit
aabdf76a5d
3 changed files with 21 additions and 25 deletions
|
|
@ -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")?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue