From 533954ed38c34038556545eb0d13f8cc5de6d4af Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 20 Jun 2024 13:02:09 +0200 Subject: [PATCH] bump bitflags dependency to 2.4 Signed-off-by: Wolfgang Bumiller --- Cargo.toml | 2 +- proxmox-rrd/src/rrd_v1.rs | 1 + proxmox-time/src/week_days.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a3b981b1..5017b658 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,7 @@ rust-version = "1.70" anyhow = "1.0" base32 = "0.4" base64 = "0.13" -bitflags = "1.2.1" +bitflags = "2.4" bytes = "1.0" const_format = "0.2" crc32fast = "1" diff --git a/proxmox-rrd/src/rrd_v1.rs b/proxmox-rrd/src/rrd_v1.rs index a62e3a7c..e132d15b 100644 --- a/proxmox-rrd/src/rrd_v1.rs +++ b/proxmox-rrd/src/rrd_v1.rs @@ -14,6 +14,7 @@ use crate::rrd::{AggregationFn, Archive, DataSource, DataSourceType, Database}; bitflags! { /// Flags to specify the data source type and consolidation function + #[derive(Clone, Copy, Debug, Eq, PartialEq)] pub struct RRAFlags: u64 { // Data Source Types const DST_GAUGE = 1; diff --git a/proxmox-time/src/week_days.rs b/proxmox-time/src/week_days.rs index 85425095..da446c5b 100644 --- a/proxmox-time/src/week_days.rs +++ b/proxmox-time/src/week_days.rs @@ -5,7 +5,7 @@ use crate::parse_helpers::{parse_error, IResult}; bitflags! { /// Defines one or more days of a week. - #[derive(Default)] + #[derive(Clone, Copy, Debug, Default, Eq, PartialEq)] pub struct WeekDays: u8 { const MONDAY = 1; const TUESDAY = 2;