Skip to content

Commit

Permalink
Revert "small fix"
Browse files Browse the repository at this point in the history
This reverts commit b1abc81.
  • Loading branch information
Zaechus committed Oct 31, 2018
1 parent 183e19a commit 6b895b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/literal_representation.rs
Expand Up @@ -229,8 +229,8 @@ impl<'a> DigitInfo<'a> {
None => String::new(),
};
format!("{}.{}{}", int_part_hint, frac_part_hint, suffix_hint)
} else if self.float && (self.digits.contains('E') || self.digits.contains('e')) {
let which_e = if self.digits.contains('E') { 'E' } else { 'e' };
} else if self.float && (self.digits.contains("E") || self.digits.contains("E")) {
let which_e = if self.digits.contains("E") { "E" } else { "e" };
let parts: Vec<&str> = self.digits.split(which_e).collect();
let filtered_digits_vec_0 = parts[0].chars().filter(|&c| c != '_').rev().collect::<Vec<_>>();
let filtered_digits_vec_1 = parts[1].chars().filter(|&c| c != '_').rev().collect::<Vec<_>>();
Expand Down

0 comments on commit 6b895b8

Please sign in to comment.