Skip to content

Commit

Permalink
Fix annoying compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Aug 5, 2021
1 parent 2b302fc commit 86a0e18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tools/schema/gen_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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};
Expand Down
13 changes: 1 addition & 12 deletions types/src/service_types/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -223,7 +224,6 @@ impl BinaryEncoder<PubSubState> for PubSubState {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct DataSetFieldFlags: i16 {
const None = 0;
const PromotedField = 1;
Expand All @@ -247,7 +247,6 @@ impl BinaryEncoder<DataSetFieldFlags> for DataSetFieldFlags {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct DataSetFieldContentMask: i32 {
const None = 0;
const StatusCode = 1;
Expand Down Expand Up @@ -338,7 +337,6 @@ impl BinaryEncoder<DataSetOrderingType> for DataSetOrderingType {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct UadpNetworkMessageContentMask: i32 {
const None = 0;
const PublisherId = 1;
Expand Down Expand Up @@ -372,7 +370,6 @@ impl BinaryEncoder<UadpNetworkMessageContentMask> for UadpNetworkMessageContentM

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct UadpDataSetMessageContentMask: i32 {
const None = 0;
const Timestamp = 1;
Expand Down Expand Up @@ -401,7 +398,6 @@ impl BinaryEncoder<UadpDataSetMessageContentMask> for UadpDataSetMessageContentM

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct JsonNetworkMessageContentMask: i32 {
const None = 0;
const NetworkMessageHeader = 1;
Expand Down Expand Up @@ -430,7 +426,6 @@ impl BinaryEncoder<JsonNetworkMessageContentMask> for JsonNetworkMessageContentM

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct JsonDataSetMessageContentMask: i32 {
const None = 0;
const DataSetWriterId = 1;
Expand Down Expand Up @@ -633,7 +628,6 @@ impl BinaryEncoder<NodeClass> for NodeClass {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct PermissionType: i32 {
const None = 0;
const Browse = 1;
Expand Down Expand Up @@ -673,7 +667,6 @@ impl BinaryEncoder<PermissionType> for PermissionType {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct AccessLevelType: u8 {
const None = 0;
const CurrentRead = 1;
Expand Down Expand Up @@ -703,7 +696,6 @@ impl BinaryEncoder<AccessLevelType> for AccessLevelType {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct AccessLevelExType: i32 {
const None = 0;
const CurrentRead = 1;
Expand Down Expand Up @@ -737,7 +729,6 @@ impl BinaryEncoder<AccessLevelExType> for AccessLevelExType {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct EventNotifierType: u8 {
const None = 0;
const SubscribeToEvents = 1;
Expand All @@ -763,7 +754,6 @@ impl BinaryEncoder<EventNotifierType> for EventNotifierType {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct AccessRestrictionType: i16 {
const None = 0;
const SigningRequired = 1;
Expand Down Expand Up @@ -1044,7 +1034,6 @@ impl BinaryEncoder<NodeAttributesMask> for NodeAttributesMask {

bitflags!{
#[derive()]
#[allow(non_upper_case_globals)]
pub struct AttributeWriteMask: i32 {
const None = 0;
const AccessLevel = 1;
Expand Down

0 comments on commit 86a0e18

Please sign in to comment.