mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Clarify the panic in get_uint_attribute.
This commit is contained in:
parent
33836715a8
commit
6322b0bfab
1 changed files with 2 additions and 1 deletions
|
@ -639,7 +639,8 @@ impl<'a> AttributeHandlers for JSRef<'a, Element> {
|
|||
Some(attribute) => {
|
||||
match *attribute.value() {
|
||||
UIntAttrValue(_, value) => value,
|
||||
_ => panic!("Expected a UIntAttrValue"),
|
||||
_ => panic!("Expected a UIntAttrValue: \
|
||||
implement parse_plain_attribute"),
|
||||
}
|
||||
}
|
||||
None => 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue