We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ada0b2b + a73d051 commit 0fd7fe9Copy full SHA for 0fd7fe9
clippy_lints/src/excessive_precision.rs
@@ -109,10 +109,9 @@ impl ExcessivePrecision {
109
}
110
111
112
-#[allow(clippy::doc_markdown)]
113
/// Should we exclude the float because it has a `.0` or `.` suffix
114
-/// Ex 1_000_000_000.0
115
-/// Ex 1_000_000_000.
+/// Ex `1_000_000_000.0`
+/// Ex `1_000_000_000.`
116
fn dot_zero_exclusion(s: &str) -> bool {
117
if let Some(after_dec) = s.split('.').nth(1) {
118
let mut decpart = after_dec.chars().take_while(|c| *c != 'e' || *c != 'E');
0 commit comments