diff options
Diffstat (limited to 'oryxc/src/unistr.rs')
| -rw-r--r-- | oryxc/src/unistr.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oryxc/src/unistr.rs b/oryxc/src/unistr.rs index 158fed1..f9ea3d0 100644 --- a/oryxc/src/unistr.rs +++ b/oryxc/src/unistr.rs @@ -45,10 +45,10 @@ impl PartialEq for UniStr<'_> { unicode_normalization::is_nfkd_quick(other.0.chars()) == IsNormalized::Yes, ) { - (true, true) => self.0 == other.0, - (true, false) => self.0.chars() == other.0.nfkd(), - (false, true) => self.0.nfkd() == other.0.chars(), - (false, false) => self.0.nfkd() == other.0.nfkd(), + (true, true) => self.0.eq(other.0), + (true, false) => self.0.chars().eq(other.0.nfkd()), + (false, true) => self.0.nfkd().eq(other.0.chars()), + (false, false) => self.0.nfkd().eq(other.0.nfkd()), }; } } |