mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Remove doc comment on statement
rustc warns about these now
This commit is contained in:
parent
9fd081bb1d
commit
38ce1d96b1
1 changed files with 3 additions and 3 deletions
|
@ -686,14 +686,14 @@ impl LineDirection {
|
||||||
input.try(|i| {
|
input.try(|i| {
|
||||||
let to_ident = i.try(|i| i.expect_ident_matching("to"));
|
let to_ident = i.try(|i| i.expect_ident_matching("to"));
|
||||||
match *compat_mode {
|
match *compat_mode {
|
||||||
/// `to` keyword is mandatory in modern syntax.
|
// `to` keyword is mandatory in modern syntax.
|
||||||
CompatMode::Modern => to_ident?,
|
CompatMode::Modern => to_ident?,
|
||||||
// Fall back to Modern compatibility mode in case there is a `to` keyword.
|
// Fall back to Modern compatibility mode in case there is a `to` keyword.
|
||||||
// According to Gecko, `-moz-linear-gradient(to ...)` should serialize like
|
// According to Gecko, `-moz-linear-gradient(to ...)` should serialize like
|
||||||
// `linear-gradient(to ...)`.
|
// `linear-gradient(to ...)`.
|
||||||
CompatMode::Moz if to_ident.is_ok() => *compat_mode = CompatMode::Modern,
|
CompatMode::Moz if to_ident.is_ok() => *compat_mode = CompatMode::Modern,
|
||||||
/// There is no `to` keyword in webkit prefixed syntax. If it's consumed,
|
// There is no `to` keyword in webkit prefixed syntax. If it's consumed,
|
||||||
/// parsing should throw an error.
|
// parsing should throw an error.
|
||||||
CompatMode::WebKit if to_ident.is_ok() => {
|
CompatMode::WebKit if to_ident.is_ok() => {
|
||||||
return Err(SelectorParseError::UnexpectedIdent("to".into()).into())
|
return Err(SelectorParseError::UnexpectedIdent("to".into()).into())
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue