style: address clippy clippy::double_ended_iterator_last, and clippy::manual_ok_err (#2025)
This commit is contained in:
@@ -89,7 +89,7 @@ impl ToolPermissionStore {
|
||||
records
|
||||
.iter()
|
||||
.filter(|record| record.expiry.is_none_or(|exp| exp > Utc::now().timestamp()))
|
||||
.last()
|
||||
.next_back()
|
||||
.map(|record| record.allowed)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user