mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix some warnings in the script
crate (#31719)
* Fix InlineFormatting error * BoxFrament * fix clippy error * clippy:fix clipy errors * fix clippy errors * fix clippy errors * fix clippy errors * Remove changes to `layout_2020` --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
4bca55e27a
commit
3ac0ab2e4e
6 changed files with 24 additions and 26 deletions
|
@ -146,10 +146,8 @@ impl MediaFragmentParser {
|
|||
let vec: Vec<&str> = input.split('-').collect();
|
||||
let mut hms: Vec<f64> = vec
|
||||
.iter()
|
||||
.map(|s| NaiveDateTime::parse_from_str(s, "%Y%m%dT%H%M%S%.fZ"))
|
||||
.flatten()
|
||||
.map(|s| parse_hms(&s.time().to_string()))
|
||||
.flatten()
|
||||
.flat_map(|s| NaiveDateTime::parse_from_str(s, "%Y%m%dT%H%M%S%.fZ"))
|
||||
.flat_map(|s| parse_hms(&s.time().to_string()))
|
||||
.collect();
|
||||
|
||||
let end = hms.pop().ok_or_else(|| ())?;
|
||||
|
@ -166,7 +164,7 @@ impl MediaFragmentParser {
|
|||
fn parse_spatial(&self, input: &str) -> Result<SpatialClipping, ()> {
|
||||
let (prefix, s) = split_prefix(input);
|
||||
let vec: Vec<&str> = s.split(',').collect();
|
||||
let mut queue: VecDeque<u32> = vec.iter().map(|s| s.parse::<u32>()).flatten().collect();
|
||||
let mut queue: VecDeque<u32> = vec.iter().flat_map(|s| s.parse::<u32>()).collect();
|
||||
|
||||
let mut clipping = SpatialClipping {
|
||||
region: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue