Use inclusive range for is_private_use function

This commit is contained in:
Héctor Ramón Jiménez 2024-02-26 06:02:19 +01:00
parent a9733e9906
commit 0cb2763160
No known key found for this signature in database
GPG key ID: 0BF4EC06CD8E5686

View file

@ -842,5 +842,5 @@ pub fn icon(icon: window::Icon) -> Option<winit::window::Icon> {
// See: https://en.wikipedia.org/wiki/Private_Use_Areas
fn is_private_use(c: char) -> bool {
c >= '\u{E000}' && c <= '\u{F8FF}'
('\u{E000}'..='\u{F8FF}').contains(&c)
}