Bump rust toolchain to 1.92 (current stable) (#6356)
This commit is contained in:
@@ -84,8 +84,7 @@ impl ToolPermissionStore {
|
||||
self.permissions.get(&key).and_then(|records| {
|
||||
records
|
||||
.iter()
|
||||
.filter(|record| record.expiry.is_none_or(|exp| exp > Utc::now().timestamp()))
|
||||
.next_back()
|
||||
.rfind(|record| record.expiry.is_none_or(|exp| exp > Utc::now().timestamp()))
|
||||
.map(|record| record.allowed)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user