summaryrefslogtreecommitdiff
path: root/font
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-05-27 17:46:52 +0300
committerGitHub <noreply@github.com>2020-05-27 14:46:52 +0000
commita14c51797f39356cf75dc8012c3a3ff3d63c042f (patch)
treee9be244745a99c573429193c3522e678886c6005 /font
parent88d87cfa86b4c4c14851a1901a6dbe59752044ad (diff)
downloadalacritty-a14c51797f39356cf75dc8012c3a3ff3d63c042f.tar.gz
alacritty-a14c51797f39356cf75dc8012c3a3ff3d63c042f.zip
Fix build warnings on macOS/Windows
Diffstat (limited to 'font')
-rw-r--r--font/src/darwin/mod.rs3
1 files changed, 1 insertions, 2 deletions
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");