refactor: remove unneeded type annotation

pull/12043/head
Nikita Revenco 2025-01-11 19:49:23 +00:00
parent cec122e1ca
commit 2a1bff5648
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ pub fn smart_case_conversion(
separator: Option<char>,
) {
let mut should_capitalize_current = capitalize_first;
let mut prev: Option<char> = None;
let mut prev = None;
let add_separator_if_needed = |prev: Option<char>, buf: &mut Tendril| {
if let Some(separator) = separator {
@ -61,7 +61,7 @@ pub fn separator_case_conversion(
buf: &mut Tendril,
separator: char,
) {
let mut prev: Option<char> = None;
let mut prev = None;
for current in chars.skip_while(|ch| ch.is_whitespace()) {
if !current.is_alphanumeric() {