Skip to content

Commit

Permalink
Backed out changeset be76cf4f456d (bug 1740258) for causing build bus…
Browse files Browse the repository at this point in the history
…tages complaining about "undeclared type `File`". CLOSED TREE
  • Loading branch information
Butkovits Atila committed Nov 9, 2021
1 parent 4059928 commit 015e2b5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gfx/wr/webrender/src/platform/unix/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,7 @@ impl FontContext {
if let Some(face) = new_ft_face(font_key, self.lib, &file, index) {
self.faces.insert(*font_key, FontFace { file, index, face, mm_var: ptr::null_mut() });
} else {
let file = File::open(str);
match file {
Err(e) => panic!("adding native font failed: file={}, err={:?}", str, e),
Ok(_) => panic!("adding native font failed but opened file={}", str)
}
panic!("adding native font failed: file={}", str);
}
}
}
Expand Down

0 comments on commit 015e2b5

Please sign in to comment.