mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix unnecessary_lazy_evaluations warnings (#31898)
This commit is contained in:
parent
65db6e3b08
commit
773e881971
2 changed files with 3 additions and 7 deletions
|
@ -237,7 +237,7 @@ impl FontHandleMethods for FontHandle {
|
|||
None => {
|
||||
let bytes = template.bytes();
|
||||
let font_file =
|
||||
FontFile::new_from_data(bytes).ok_or_else(|| "Could not create FontFile")?;
|
||||
FontFile::new_from_data(bytes).ok_or("Could not create FontFile")?;
|
||||
let face = font_file
|
||||
.create_face(0, dwrote::DWRITE_FONT_SIMULATIONS_NONE)
|
||||
.map_err(|_| "Could not create FontFace")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue