diff options
Diffstat (limited to 'src/font/variant.rs')
| -rw-r--r-- | src/font/variant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font/variant.rs b/src/font/variant.rs index 9e16afc8..085f2ae7 100644 --- a/src/font/variant.rs +++ b/src/font/variant.rs @@ -111,7 +111,7 @@ impl FontWeight { /// The absolute number distance between this and another font weight. pub fn distance(self, other: Self) -> u16 { - (self.0 as i16 - other.0 as i16).abs() as u16 + (self.0 as i16 - other.0 as i16).unsigned_abs() } } |
