Skip to content

Commit 884b485

Browse files
committed
Handle equal case
1 parent 3c98542 commit 884b485

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scripts/unicode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def emit_enums(f, script_list, extension_list, longforms):
267267
#[inline]
268268
pub(crate) fn inner_intersects(self, other: Self) -> bool {
269269
match (self, other) {
270+
(a, b) if a == b => true,
270271
(ScriptExtension::Single(Script::Zyyy), _) |
271272
(ScriptExtension::Single(Script::Zinh), _) |
272273
(_, ScriptExtension::Single(Script::Zyyy)) |

src/tables.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ impl ScriptExtension {
725725
#[inline]
726726
pub(crate) fn inner_intersects(self, other: Self) -> bool {
727727
match (self, other) {
728+
(a, b) if a == b => true,
728729
(ScriptExtension::Single(Script::Zyyy), _) |
729730
(ScriptExtension::Single(Script::Zinh), _) |
730731
(_, ScriptExtension::Single(Script::Zyyy)) |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy