chore: apply 1.84 linter suggestions (#5330)
* chore: apply 1.84 linter suggestions * updated wasm dependencies to fix the macro issue * second batch of clippy fixes
This commit is contained in:
committed by
GitHub
parent
a94c035c0a
commit
529e8d49ee
@@ -120,9 +120,7 @@ impl ThreadsafeGatewayCache {
|
||||
.read()
|
||||
.await
|
||||
.get(&identity_key)
|
||||
.map_or(false, |cache_item| {
|
||||
cache_item.valid_until > SystemTime::now()
|
||||
})
|
||||
.is_some_and(|cache_item| cache_item.valid_until > SystemTime::now())
|
||||
}
|
||||
|
||||
pub(crate) async fn get_locations(&self) -> GatewayLocationCache {
|
||||
|
||||
@@ -106,9 +106,7 @@ impl ThreadsafeMixNodesCache {
|
||||
.read()
|
||||
.await
|
||||
.get(&mix_id)
|
||||
.map_or(false, |cache_item| {
|
||||
cache_item.valid_until > SystemTime::now()
|
||||
})
|
||||
.is_some_and(|cache_item| cache_item.valid_until > SystemTime::now())
|
||||
}
|
||||
|
||||
pub(crate) async fn get_locations(&self) -> MixnodeLocationCache {
|
||||
|
||||
@@ -60,9 +60,7 @@ impl ThreadSafeNymNodesCache {
|
||||
.read()
|
||||
.await
|
||||
.get(&node_id)
|
||||
.map_or(false, |cache_item| {
|
||||
cache_item.valid_until > SystemTime::now()
|
||||
})
|
||||
.is_some_and(|cache_item| cache_item.valid_until > SystemTime::now())
|
||||
}
|
||||
|
||||
pub(crate) async fn get_bonded_nymnodes(
|
||||
|
||||
Reference in New Issue
Block a user