mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Change debug assertions to specific ones
This commit is contained in:
parent
2cf0077be1
commit
661d234c3c
23 changed files with 53 additions and 53 deletions
|
@ -315,7 +315,7 @@ impl Color {
|
|||
if let Some(unit) = unit {
|
||||
written += (&mut serialization[written..]).write(unit.as_bytes()).unwrap();
|
||||
}
|
||||
debug_assert!(written == 6);
|
||||
debug_assert_eq!(written, 6);
|
||||
parse_hash_color(&serialization).map_err(|()| {
|
||||
location.new_custom_error(StyleParseErrorKind::UnspecifiedError)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue