mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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) => {
|
Some(attribute) => {
|
||||||
match *attribute.value() {
|
match *attribute.value() {
|
||||||
UIntAttrValue(_, value) => value,
|
UIntAttrValue(_, value) => value,
|
||||||
_ => panic!("Expected a UIntAttrValue"),
|
_ => panic!("Expected a UIntAttrValue: \
|
||||||
|
implement parse_plain_attribute"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => 0,
|
None => 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue