resolve all lints, update MSRV
This commit is contained in:
parent
166b59f560
commit
f05a69a9d9
18 changed files with 251 additions and 283 deletions
|
|
@ -33,7 +33,7 @@ impl ShapeRunCache {
|
|||
self.cache.insert(key, (self.age, glyphs));
|
||||
}
|
||||
|
||||
/// Remove anything in the cache with an age older than keep_ages
|
||||
/// Remove anything in the cache with an age older than `keep_ages`
|
||||
pub fn trim(&mut self, keep_ages: u64) {
|
||||
self.cache
|
||||
.retain(|_key, (age, _glyphs)| *age + keep_ages >= self.age);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue