diff options
Diffstat (limited to 'font/src/ft/fc/pattern.rs')
-rw-r--r-- | font/src/ft/fc/pattern.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs index 7d8d6430..4fcea7ae 100644 --- a/font/src/ft/fc/pattern.rs +++ b/font/src/ft/fc/pattern.rs @@ -518,7 +518,7 @@ impl PatternRef { } pub fn get_width(&self) -> Option<Width> { - unsafe { self.get_integer(b"width\0").nth(0).map(Width::from) } + unsafe { self.get_integer(b"width\0").next().map(Width::from) } } pub fn rgba(&self) -> RgbaPropertyIter { |