mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
Fix mac breakage
This commit is contained in:
parent
c92c1c661f
commit
e36aac940a
3 changed files with 2 additions and 4 deletions
|
@ -16,7 +16,7 @@ type NativeFont/& = quartz_native_font::QuartzNativeFont;
|
|||
type NativeFont/& = ft_native_font::FreeTypeNativeFont;
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
fn with_test_native_font(f: fn@(NativeFont)) {
|
||||
fn with_test_native_font(f: fn@(nf: &NativeFont)) {
|
||||
quartz_native_font::with_test_native_font(f);
|
||||
}
|
||||
|
||||
|
|
|
@ -85,7 +85,6 @@ impl methods for FT_Error {
|
|||
fn succeeded() -> bool { self == 0 as FT_Error }
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn with_test_native_font(f: fn@(nf: &NativeFont)) {
|
||||
import font::test_font_bin;
|
||||
import unwrap_result = result::unwrap;
|
||||
|
|
|
@ -17,7 +17,6 @@ class QuartzNativeFont/& {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn with_test_native_font(f: fn@(nf: &NativeFont)) {
|
||||
fn with_test_native_font(_f: fn@(nf: &NativeFont)) {
|
||||
fail
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue