resolve all lints, update MSRV

This commit is contained in:
dsgallups 2025-01-22 16:29:02 -05:00 committed by Jeremy Soller
parent 166b59f560
commit f05a69a9d9
18 changed files with 251 additions and 283 deletions

View file

@ -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);