summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/font/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/font/mod.rs b/src/font/mod.rs
index ab94e093..bedc107d 100644
--- a/src/font/mod.rs
+++ b/src/font/mod.rs
@@ -124,6 +124,7 @@ impl Font {
impl Hash for Font {
fn hash<H: Hasher>(&self, state: &mut H) {
self.0.data.hash(state);
+ self.0.index.hash(state);
}
}
@@ -137,7 +138,7 @@ impl Eq for Font {}
impl PartialEq for Font {
fn eq(&self, other: &Self) -> bool {
- self.0.data.eq(&other.0.data)
+ self.0.data == other.0.data && self.0.index == other.0.index
}
}