mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
style: Don't generate catch-all branch if a image layer keyword value is exhaustive.
Bug: 1463978 Reviewed-by: emilio MozReview-Commit-ID: H8T9Low6kqY
This commit is contained in:
parent
6306cc7e2d
commit
8f367be650
3 changed files with 48 additions and 33 deletions
|
@ -3805,7 +3805,9 @@ fn static_assert() {
|
|||
% endif
|
||||
=> Keyword::${to_camel_case(value)},
|
||||
% endfor
|
||||
% if keyword.gecko_inexhaustive:
|
||||
_ => panic!("Found unexpected value in style struct for ${ident} property"),
|
||||
% endif
|
||||
}
|
||||
}).collect()
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue