From db11ea02d777a33fedb6af4ee056e85f52fbb008 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 17 Mar 2026 19:56:03 +0100 Subject: Lots of code simplification --- oryxc/src/unistr.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'oryxc/src/unistr.rs') 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()), }; } } -- cgit v1.2.3