From bf788f5f00597bcd3f284853b3bbefe8cd481f46 Mon Sep 17 00:00:00 2001 From: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Tue, 25 Mar 2025 16:04:35 +0000 Subject: [PATCH] fix: use `to_{uppercase,lowercase}` instead of `to_ascii*`variants --- helix-core/src/case_conversion.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helix-core/src/case_conversion.rs b/helix-core/src/case_conversion.rs index 14631b3cc..9459cd302 100644 --- a/helix-core/src/case_conversion.rs +++ b/helix-core/src/case_conversion.rs @@ -50,10 +50,10 @@ pub fn smart_case_conversion( } if should_capitalize_current { - buf.push(current.to_ascii_uppercase()); + buf.extend(current.to_uppercase()); should_capitalize_current = false; } else { - buf.push(current.to_ascii_lowercase()); + buf.extend(current.to_lowercase()); } prev = Some(current); @@ -83,7 +83,7 @@ pub fn separator_case_conversion( buf.push(separator); } - buf.push(current.to_ascii_lowercase()); + buf.extend(current.to_lowercase()); prev = Some(current); }