Skip to content

Commit 344569d

Browse files
committed
fix: implement "Copy" to use enum in union
1 parent 2690009 commit 344569d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coding-guidelines/types-and-traits.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Types and Traits
114114
.. code-block:: rust
115115
116116
#[repr(u8)]
117+
#[derive(Copy, Clone)]
117118
enum Color {
118119
Red = 0,
119120
Green = 1,

0 commit comments

Comments
 (0)