]> git.lizzy.rs Git - rust.git/commitdiff
More autoclippyification
authorOliver Schneider <oli-obk@users.noreply.github.com>
Tue, 1 Aug 2017 07:55:17 +0000 (09:55 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Aug 2017 07:55:17 +0000 (09:55 +0200)
clippy_lints/src/literal_digit_grouping.rs

index a07c40ed2419e99bbf603707c0e04eab2e70cc88..ec80e6968f85b45e7daf194290c0d47b534baba4 100644 (file)
@@ -145,7 +145,7 @@ pub fn new(lit: &str, float: bool) -> DigitInfo {
     fn grouping_hint(&self) -> String {
         let group_size = self.radix.suggest_grouping();
         if self.digits.contains('.') {
-            let mut parts = self.digits.split(".");
+            let mut parts = self.digits.split('.');
             let int_part_hint = parts
                 .next()
                 .unwrap()