diff --git a/tools/schema/gen_types.js b/tools/schema/gen_types.js index f471454ed..dfac6e0a7 100644 --- a/tools/schema/gen_types.js +++ b/tools/schema/gen_types.js @@ -272,7 +272,6 @@ function generate_bitfield(enum_type, derivations){ contents = ` bitflags!{ #[derive(${derivations})] - #[allow(non_upper_case_globals)] pub struct ${enum_type.name}: ${enum_type.type} {`; _.each(enum_type.values, (value) => { @@ -309,6 +308,7 @@ function generate_enum_types(enums) { // This file was autogenerated from Opc.Ua.Types.bsd.xml by tools/schema/gen_types.js // DO NOT EDIT THIS FILE #![allow(unused_attributes)] +#![allow(non_upper_case_globals)] use std::io::{Read, Write}; diff --git a/types/src/service_types/enums.rs b/types/src/service_types/enums.rs index a54fcc7f5..132f1b88a 100644 --- a/types/src/service_types/enums.rs +++ b/types/src/service_types/enums.rs @@ -5,6 +5,7 @@ // This file was autogenerated from Opc.Ua.Types.bsd.xml by tools/schema/gen_types.js // DO NOT EDIT THIS FILE #![allow(unused_attributes)] +#![allow(non_upper_case_globals)] use std::io::{Read, Write}; @@ -223,7 +224,6 @@ impl BinaryEncoder for PubSubState { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct DataSetFieldFlags: i16 { const None = 0; const PromotedField = 1; @@ -247,7 +247,6 @@ impl BinaryEncoder for DataSetFieldFlags { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct DataSetFieldContentMask: i32 { const None = 0; const StatusCode = 1; @@ -338,7 +337,6 @@ impl BinaryEncoder for DataSetOrderingType { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct UadpNetworkMessageContentMask: i32 { const None = 0; const PublisherId = 1; @@ -372,7 +370,6 @@ impl BinaryEncoder for UadpNetworkMessageContentM bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct UadpDataSetMessageContentMask: i32 { const None = 0; const Timestamp = 1; @@ -401,7 +398,6 @@ impl BinaryEncoder for UadpDataSetMessageContentM bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct JsonNetworkMessageContentMask: i32 { const None = 0; const NetworkMessageHeader = 1; @@ -430,7 +426,6 @@ impl BinaryEncoder for JsonNetworkMessageContentM bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct JsonDataSetMessageContentMask: i32 { const None = 0; const DataSetWriterId = 1; @@ -633,7 +628,6 @@ impl BinaryEncoder for NodeClass { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct PermissionType: i32 { const None = 0; const Browse = 1; @@ -673,7 +667,6 @@ impl BinaryEncoder for PermissionType { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct AccessLevelType: u8 { const None = 0; const CurrentRead = 1; @@ -703,7 +696,6 @@ impl BinaryEncoder for AccessLevelType { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct AccessLevelExType: i32 { const None = 0; const CurrentRead = 1; @@ -737,7 +729,6 @@ impl BinaryEncoder for AccessLevelExType { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct EventNotifierType: u8 { const None = 0; const SubscribeToEvents = 1; @@ -763,7 +754,6 @@ impl BinaryEncoder for EventNotifierType { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct AccessRestrictionType: i16 { const None = 0; const SigningRequired = 1; @@ -1044,7 +1034,6 @@ impl BinaryEncoder for NodeAttributesMask { bitflags!{ #[derive()] - #[allow(non_upper_case_globals)] pub struct AttributeWriteMask: i32 { const None = 0; const AccessLevel = 1;