diff options
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/german-string/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/users/tazjin/german-string/src/lib.rs b/users/tazjin/german-string/src/lib.rs index e696af7cbe62..09ac3384d916 100644 --- a/users/tazjin/german-string/src/lib.rs +++ b/users/tazjin/german-string/src/lib.rs @@ -112,8 +112,9 @@ impl PartialEq for GermanString { if self.len() <= 12 { return self.0.small.data[..self.len()] == other.0.small.data[..other.len()]; } - return self.0.large.prefix == other.0.large.prefix - && self.as_bytes() == other.as_bytes(); + return self.0.large.data == other.0.large.data + || (self.0.large.prefix == other.0.large.prefix + && self.as_bytes() == other.as_bytes()); } } } |