1
Fork 0

Remove allow(doc_markdown) in excessive_precision.rs

This commit is contained in:
Philipp Hansch 2018-12-07 22:47:12 +01:00
parent 041c49c1ed
commit a73d051227
No known key found for this signature in database
GPG key ID: B6FA06A6E0E2665B

View file

@ -109,10 +109,9 @@ impl ExcessivePrecision {
} }
} }
#[allow(clippy::doc_markdown)]
/// Should we exclude the float because it has a `.0` or `.` suffix /// Should we exclude the float because it has a `.0` or `.` suffix
/// Ex 1_000_000_000.0 /// Ex `1_000_000_000.0`
/// Ex 1_000_000_000. /// Ex `1_000_000_000.`
fn dot_zero_exclusion(s: &str) -> bool { fn dot_zero_exclusion(s: &str) -> bool {
if let Some(after_dec) = s.split('.').nth(1) { if let Some(after_dec) = s.split('.').nth(1) {
let mut decpart = after_dec.chars().take_while(|c| *c != 'e' || *c != 'E'); let mut decpart = after_dec.chars().take_while(|c| *c != 'e' || *c != 'E');