mirror of
https://github.com/servo/servo.git
synced 2025-09-10 23:18:20 +01:00
fix a couple of simple clipy warnings (#32813)
Signed-off-by: Rodion Borovyk <rodion.borovyk@gmail.com>
This commit is contained in:
parent
5eb77592ea
commit
4bf5024ee0
5 changed files with 9 additions and 13 deletions
|
@ -53,9 +53,7 @@ impl CoreTextFontCache {
|
|||
}
|
||||
|
||||
let mut cache = cache.write();
|
||||
let identifier_cache = cache
|
||||
.entry(font_identifier.clone())
|
||||
.or_insert_with(Default::default);
|
||||
let identifier_cache = cache.entry(font_identifier.clone()).or_default();
|
||||
|
||||
// It could be that between the time of the cache miss above and now, after the write lock
|
||||
// on the cache has been acquired, the cache was populated with the data that we need. Thus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue