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.
1 parent 1573d10 commit dde46c9Copy full SHA for dde46c9
clippy_lints/src/tabs_in_doc_comments.rs
@@ -106,7 +106,7 @@ fn get_chunks_of_tabs(the_str: &str) -> Vec<(u32, u32)> {
106
107
let char_indices: Vec<_> = the_str.char_indices().collect();
108
109
- if char_indices.len() == 1 && char_indices.first().unwrap().1 == '\t' {
+ if let &[(_, '\t')] = &char_indices.as_slice() {
110
return vec![(0, 1)];
111
}
112
0 commit comments