aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/parser.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-06-04 02:02:50 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-06-04 02:02:50 +0200
commit762abbaf9f886fc4463124d88f54fafab0ca1a6d (patch)
tree4b0425c0b20b29a4b5590478b02539e5dc25db2b /components/style/parser.rs
parent69c7077b3dcd2574002ba656fed0cc25a745a1ef (diff)
downloadservo-762abbaf9f886fc4463124d88f54fafab0ca1a6d.tar.gz
servo-762abbaf9f886fc4463124d88f54fafab0ca1a6d.zip
style: Rustfmt recent changes.
Diffstat (limited to 'components/style/parser.rs')
-rw-r--r--components/style/parser.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/style/parser.rs b/components/style/parser.rs
index f506b809955..26e7cab1ad9 100644
--- a/components/style/parser.rs
+++ b/components/style/parser.rs
@@ -208,13 +208,19 @@ where
}
impl Parse for crate::OwnedStr {
- fn parse<'i, 't>(_: &ParserContext, input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>> {
+ fn parse<'i, 't>(
+ _: &ParserContext,
+ input: &mut Parser<'i, 't>,
+ ) -> Result<Self, ParseError<'i>> {
Ok(input.expect_string()?.as_ref().to_owned().into())
}
}
impl Parse for UnicodeRange {
- fn parse<'i, 't>(_: &ParserContext, input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>> {
+ fn parse<'i, 't>(
+ _: &ParserContext,
+ input: &mut Parser<'i, 't>,
+ ) -> Result<Self, ParseError<'i>> {
Ok(UnicodeRange::parse(input)?)
}
}