mirror of https://github.com/helix-editor/helix
refactor: remove unneeded type annotation
parent
cec122e1ca
commit
2a1bff5648
|
@ -22,7 +22,7 @@ pub fn smart_case_conversion(
|
||||||
separator: Option<char>,
|
separator: Option<char>,
|
||||||
) {
|
) {
|
||||||
let mut should_capitalize_current = capitalize_first;
|
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| {
|
let add_separator_if_needed = |prev: Option<char>, buf: &mut Tendril| {
|
||||||
if let Some(separator) = separator {
|
if let Some(separator) = separator {
|
||||||
|
@ -61,7 +61,7 @@ pub fn separator_case_conversion(
|
||||||
buf: &mut Tendril,
|
buf: &mut Tendril,
|
||||||
separator: char,
|
separator: char,
|
||||||
) {
|
) {
|
||||||
let mut prev: Option<char> = None;
|
let mut prev = None;
|
||||||
|
|
||||||
for current in chars.skip_while(|ch| ch.is_whitespace()) {
|
for current in chars.skip_while(|ch| ch.is_whitespace()) {
|
||||||
if !current.is_alphanumeric() {
|
if !current.is_alphanumeric() {
|
||||||
|
|
Loading…
Reference in New Issue