summaryrefslogtreecommitdiff
path: root/oryxc/src/unistr.rs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-17 19:56:03 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-17 19:56:16 +0100
commitdb11ea02d777a33fedb6af4ee056e85f52fbb008 (patch)
tree95243c3efe24bac3caabf2eb364911230a59d3ce /oryxc/src/unistr.rs
parentad2c6812a71f10797a4023e175b7a0d2d9b1fa81 (diff)
Lots of code simplificationHEADmaster
Diffstat (limited to 'oryxc/src/unistr.rs')
-rw-r--r--oryxc/src/unistr.rs8
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()),
};
}
}