mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-12-22 19:26:30 +00:00
clippy
This commit is contained in:
parent
8bce3d172f
commit
f70af22c6a
2 changed files with 2 additions and 2 deletions
|
@ -289,7 +289,7 @@ impl Inner {
|
|||
}
|
||||
|
||||
let mut d = self.distributions.write().unwrap();
|
||||
let outer_entry = d.entry(name.clone()).or_insert_with(BTreeMap::new);
|
||||
let outer_entry = d.entry(name.clone()).or_default();
|
||||
|
||||
let entry = outer_entry
|
||||
.entry(labels)
|
||||
|
|
|
@ -28,7 +28,7 @@ impl AdminConfig {
|
|||
}
|
||||
|
||||
fn verify(&self, token: XApiToken) -> Result<bool, Error> {
|
||||
bcrypt::verify(&token.0, &self.hashed_api_token).map_err(Error::bcrypt_verify)
|
||||
bcrypt::verify(token.0, &self.hashed_api_token).map_err(Error::bcrypt_verify)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue