We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
newtype_enum!
1 parent e2cde21 commit dbf9ad1Copy full SHA for dbf9ad1
src/data_types/enums.rs
@@ -44,7 +44,7 @@
44
macro_rules! newtype_enum {
45
(
46
$(#[$type_attrs:meta])*
47
- pub enum $type:ident : $base_integer:ty => $(#[$impl_attrs:meta])* {
+ $visibility:vis enum $type:ident : $base_integer:ty => $(#[$impl_attrs:meta])* {
48
$(
49
$(#[$variant_attrs:meta])*
50
$variant:ident = $value:expr,
@@ -54,7 +54,7 @@ macro_rules! newtype_enum {
54
$(#[$type_attrs])*
55
#[repr(transparent)]
56
#[derive(Clone, Copy, Eq, PartialEq)]
57
- pub struct $type(pub $base_integer);
+ $visibility struct $type(pub $base_integer);
58
59
$(#[$impl_attrs])*
60
#[allow(unused)]
0 commit comments