diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-04-21 00:27:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 00:27:29 +0000 |
commit | 3bfb5958bc39360aeb071055660c2509650b6a95 (patch) | |
tree | 7757c23402243c3fd951cccd6505dc05f5e94a70 | |
parent | 34daa1237b441aa87bab74db837f2bf1a027cbe3 (diff) | |
download | alacritty-3bfb5958bc39360aeb071055660c2509650b6a95.tar.gz alacritty-3bfb5958bc39360aeb071055660c2509650b6a95.zip |
Fix code formatting
-rw-r--r-- | font/src/directwrite/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/font/src/directwrite/mod.rs b/font/src/directwrite/mod.rs index 87130a37..ccb43b33 100644 --- a/font/src/directwrite/mod.rs +++ b/font/src/directwrite/mod.rs @@ -220,7 +220,7 @@ impl crate::Rasterize for DirectWriteRasterizer { // This searches for the "best" font - should mean we don't have to worry about // fallbacks if our exact desired weight/style isn't available Ok(family.get_first_matching_font(weight.into(), FontStretch::Normal, slant.into())) - } + }, Style::Specific(ref style) => { let mut idx = 0; let count = family.get_font_count(); @@ -238,7 +238,7 @@ impl crate::Rasterize for DirectWriteRasterizer { idx += 1; } - } + }, }?; let key = FontKey::next(); @@ -288,7 +288,7 @@ impl Display for Error { Error::FontNotLoaded => f.write_str("Tried to use a font that hasn't been loaded"), Error::DirectWriteError(hresult) => { write!(f, "A DirectWrite rendering error occurred: {:#X}", hresult) - } + }, } } } |