mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix single_match warnings (#31876)
This commit is contained in:
parent
d16f259e1d
commit
b71de92569
7 changed files with 115 additions and 133 deletions
|
@ -741,13 +741,10 @@ fn parse_time_component(value: &str) -> Option<(u32, u32, f64)> {
|
|||
if second_iterator.next()?.len() != 2 {
|
||||
return None;
|
||||
}
|
||||
match second_iterator.next() {
|
||||
Some(second_last) => {
|
||||
if second_last.len() > 3 {
|
||||
return None;
|
||||
}
|
||||
},
|
||||
None => {},
|
||||
if let Some(second_last) = second_iterator.next() {
|
||||
if second_last.len() > 3 {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
||||
second.parse::<f64>().ok()?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue