mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Derive parse for TextOverflowSide.
Depends on D76330 Differential Revision: https://phabricator.services.mozilla.com/D76331
This commit is contained in:
parent
396338816d
commit
e259c53c62
2 changed files with 7 additions and 24 deletions
|
@ -207,6 +207,12 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl Parse for crate::OwnedStr {
|
||||
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>> {
|
||||
Ok(UnicodeRange::parse(input)?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue