mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
style: Tidy and sprinkle some comments.
This commit is contained in:
parent
3e27459ad3
commit
190e9b9715
3 changed files with 15 additions and 6 deletions
|
@ -2060,6 +2060,7 @@ pub enum MozScriptLevel {
|
|||
|
||||
impl Parse for MozScriptLevel {
|
||||
fn parse<'i, 't>(_: &ParserContext, input: &mut Parser<'i, 't>) -> Result<MozScriptLevel, ParseError<'i>> {
|
||||
// We don't bother to handle calc here.
|
||||
if let Ok(i) = input.try(|i| i.expect_integer()) {
|
||||
return Ok(MozScriptLevel::Relative(i))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue