Skip to content

Commit 98ce334

Browse files
committed
change single char str to char
1 parent 3c22b23 commit 98ce334

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/literal_representation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ impl<'a> DigitInfo<'a> {
229229
None => String::new(),
230230
};
231231
format!("{}.{}{}", int_part_hint, frac_part_hint, suffix_hint)
232-
} else if self.float && (self.digits.contains("E") || self.digits.contains("E")) {
233-
let which_e = if self.digits.contains("E") { "E" } else { "e" };
232+
} else if self.float && (self.digits.contains('E') || self.digits.contains('E')) {
233+
let which_e = if self.digits.contains('E') { 'E' } else { 'e' };
234234
let parts: Vec<&str> = self.digits.split(which_e).collect();
235235
let filtered_digits_vec_0 = parts[0].chars().filter(|&c| c != '_').rev().collect::<Vec<_>>();
236236
let filtered_digits_vec_1 = parts[1].chars().filter(|&c| c != '_').rev().collect::<Vec<_>>();

0 commit comments

Comments
 (0)