mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: fixed various clippy warnings in components/scripts
(#31960)
* fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
fd8235e409
commit
2f5a4354e7
7 changed files with 7 additions and 7 deletions
|
@ -2863,7 +2863,7 @@ impl Activatable for HTMLInputElement {
|
|||
fn filter_from_accept(s: &DOMString) -> Vec<FilterPattern> {
|
||||
let mut filter = vec![];
|
||||
for p in split_commas(s) {
|
||||
if let Some('.') = p.chars().nth(0) {
|
||||
if let Some('.') = p.chars().next() {
|
||||
filter.push(FilterPattern(p[1..].to_string()));
|
||||
} else if let Some(exts) = mime_guess::get_mime_extensions_str(p) {
|
||||
for ext in exts {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue