summaryrefslogtreecommitdiff
path: root/font/src/ft/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-07-03 00:11:24 +0200
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-07-02 22:11:24 +0000
commit21eb50aa50586ae95d553ae097cb1199334ac1c0 (patch)
tree85eca46c21a4e440c8c528c5efafc8c8162b8ec7 /font/src/ft/mod.rs
parent985ba306c78857e07f3f267ab954ad069d30a465 (diff)
downloadalacritty-21eb50aa50586ae95d553ae097cb1199334ac1c0.tar.gz
alacritty-21eb50aa50586ae95d553ae097cb1199334ac1c0.zip
Enable clippy in font/copypasta crates
Enabled clippy in the sub-crates font and copypasta. All issues that were discovered by this change have also been fixed.
Diffstat (limited to 'font/src/ft/mod.rs')
-rw-r--r--font/src/ft/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs
index cdae88cb..516f3b9c 100644
--- a/font/src/ft/mod.rs
+++ b/font/src/ft/mod.rs
@@ -232,15 +232,15 @@ impl FreeTypeRasterizer {
let ft_face = self.library.new_face(&path, index)?;
// Get available pixel sizes if font isn't scalable.
- let non_scalable = if !pattern.scalable().next().unwrap_or(true) {
+ let non_scalable = if pattern.scalable().next().unwrap_or(true) {
+ None
+ } else {
let mut pixelsize = pattern.pixelsize();
debug!("pixelsizes: {:?}", pixelsize);
Some(FixedSize {
pixelsize: pixelsize.next().expect("has 1+ pixelsize"),
})
- } else {
- None
};
let face = Face {