]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_utils/src/numeric_literal.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / tools / clippy / clippy_utils / src / numeric_literal.rs
index 546706d51d7b597c3f6d03b90a1448152533d37b..4a28c7dd9a04a3885251ef7ab44e7d5ea65aa7fe 100644 (file)
@@ -162,6 +162,9 @@ pub fn format(&self) -> String {
         }
 
         if let Some(suffix) = self.suffix {
+            if output.ends_with('.') {
+                output.push('0');
+            }
             output.push('_');
             output.push_str(suffix);
         }