From a14c51797f39356cf75dc8012c3a3ff3d63c042f Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Wed, 27 May 2020 17:46:52 +0300 Subject: Fix build warnings on macOS/Windows --- font/src/darwin/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'font/src') diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index f7bf6c82..2c8d238e 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -281,7 +281,6 @@ pub struct Font { unsafe impl Send for Font {} - /// Set subpixel anti-aliasing on macOS. /// /// Sub-pixel anti-aliasing has been disabled since macOS Mojave by default. This function allows @@ -294,7 +293,7 @@ pub fn set_font_smoothing(enable: bool) { unsafe { // Check that we're running at least Mojave (10.14.0+). if !NSProcessInfo::processInfo(nil).isOperatingSystemAtLeastVersion(min_macos_version) { - return + return; } let key = NSString::alloc(nil).init_str("CGFontRenderingFontSmoothingDisabled"); -- cgit