mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
OHOS: Fixed some clippy lints (#37510)
Fixed some clippy lints which were in the OHOS code. Testing: Normal testcases apply and changes are trivial. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
parent
f29eee5356
commit
6159a11905
3 changed files with 7 additions and 8 deletions
|
@ -307,7 +307,7 @@ impl FontList {
|
|||
fn detect_installed_font_families() -> Vec<FontFamily> {
|
||||
let mut families = enumerate_font_files()
|
||||
.inspect_err(|e| error!("Failed to enumerate font files due to `{e:?}`"))
|
||||
.map(|font_files| parse_font_filenames(font_files))
|
||||
.map(parse_font_filenames)
|
||||
.unwrap_or_else(|_| FontList::fallback_font_families());
|
||||
families.extend(Self::hardcoded_font_families());
|
||||
families
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue