Use unreachable! instead of panic! in attr serialize
This commit is contained in:
parent
1a28b26121
commit
6b9734143c
@ -549,7 +549,7 @@ impl<'arena> Serialize for Node<'arena> {
|
||||
if let Some(serialized_declarations) = &at.serialized_value {
|
||||
(&at.name, serialized_declarations.as_str())
|
||||
} else {
|
||||
panic!("Serialized style attribute value was not saved to the arena");
|
||||
unreachable!("Serialized style attribute value was not saved to the arena");
|
||||
}
|
||||
}
|
||||
Attribute::Text(at) => (&at.name, &at.value[..]),
|
||||
|
Loading…
Reference in New Issue
Block a user