mirror of
https://github.com/servo/servo.git
synced 2025-08-23 06:15:35 +01:00
Store COW strings in CSS parser errors when possible.
This commit is contained in:
parent
2bb4f65100
commit
bbf3280fef
3 changed files with 3 additions and 3 deletions
|
@ -224,7 +224,7 @@ impl<'a> ErrorHelpers<'a> for ContextualParseError<'a> {
|
|||
(_, CssParseError::Custom(SelectorParseError::Custom(
|
||||
StyleParseError::PropertyDeclaration(
|
||||
PropertyDeclarationParseError::InvalidValue(property))))) =>
|
||||
ErrorString::Snippet(property.into()),
|
||||
ErrorString::Snippet(property),
|
||||
|
||||
(_, CssParseError::Custom(SelectorParseError::UnexpectedIdent(ident))) =>
|
||||
ErrorString::Ident(ident),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue