mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Derive the Debug trait for WebIDL-generated enums.
This commit is contained in:
parent
61f09cce4e
commit
eede44984d
1 changed files with 1 additions and 1 deletions
|
@ -3509,7 +3509,7 @@ class CGEnum(CGThing):
|
||||||
|
|
||||||
decl = """\
|
decl = """\
|
||||||
#[repr(usize)]
|
#[repr(usize)]
|
||||||
#[derive(JSTraceable, PartialEq, Copy, Clone, HeapSizeOf)]
|
#[derive(JSTraceable, PartialEq, Copy, Clone, HeapSizeOf, Debug)]
|
||||||
pub enum %s {
|
pub enum %s {
|
||||||
%s
|
%s
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue