diff options
| author | bors <bors@rust-lang.org> | 2018-12-10 19:21:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-12-10 19:21:25 +0000 |
| commit | 0fd7fe9a773cc68e9240ac9cbe2c5d4e5a6d0e8b (patch) | |
| tree | 43017700933f25d9afeb571983d2fafb43410c75 | |
| parent | ada0b2b0950bc5133ad198272f22b006303ef016 (diff) | |
| parent | a73d05122786b40ce97bc513d23a00b3ad095a55 (diff) | |
| download | rust-0fd7fe9a773cc68e9240ac9cbe2c5d4e5a6d0e8b.tar.gz rust-0fd7fe9a773cc68e9240ac9cbe2c5d4e5a6d0e8b.zip | |
Auto merge of #3511 - phansch:remove_allow_doc_markdown, r=phansch
Remove allow(doc_markdown) in excessive_precision.rs Closes #3299
| -rw-r--r-- | clippy_lints/src/excessive_precision.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clippy_lints/src/excessive_precision.rs b/clippy_lints/src/excessive_precision.rs index ff678925d8f..7d72f417b2a 100644 --- a/clippy_lints/src/excessive_precision.rs +++ b/clippy_lints/src/excessive_precision.rs @@ -109,10 +109,9 @@ impl ExcessivePrecision { } } -#[allow(clippy::doc_markdown)] /// Should we exclude the float because it has a `.0` or `.` suffix -/// Ex 1_000_000_000.0 -/// Ex 1_000_000_000. +/// Ex `1_000_000_000.0` +/// Ex `1_000_000_000.` fn dot_zero_exclusion(s: &str) -> bool { if let Some(after_dec) = s.split('.').nth(1) { let mut decpart = after_dec.chars().take_while(|c| *c != 'e' || *c != 'E'); |
