mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
cargo fix --edition
This commit is contained in:
parent
e1fcffb336
commit
a15d33a10e
197 changed files with 1414 additions and 1380 deletions
|
@ -4,12 +4,12 @@
|
|||
|
||||
//! Generic type for CSS properties that are composed by two dimensions.
|
||||
|
||||
use crate::parser::ParserContext;
|
||||
use crate::values::animated::ToAnimatedValue;
|
||||
use cssparser::Parser;
|
||||
use euclid::Size2D;
|
||||
use parser::ParserContext;
|
||||
use std::fmt::{self, Write};
|
||||
use style_traits::{CssWriter, ParseError, SpecifiedValueInfo, ToCss};
|
||||
use values::animated::ToAnimatedValue;
|
||||
|
||||
/// A generic size, for `border-*-radius` longhand properties, or
|
||||
/// `border-spacing`.
|
||||
|
@ -55,7 +55,7 @@ impl<L> Size<L> {
|
|||
{
|
||||
let first = parse_one(context, input)?;
|
||||
let second = input
|
||||
.try(|i| parse_one(context, i))
|
||||
.r#try(|i| parse_one(context, i))
|
||||
.unwrap_or_else(|_| first.clone());
|
||||
Ok(Self::new(first, second))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue