5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-02-02 09:47:16 +03:00

bump bitflags to 2.4

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-06-20 13:36:59 +02:00
parent a912e551cd
commit d9e9ed845d
6 changed files with 6 additions and 4 deletions

View File

@ -105,7 +105,7 @@ anyhow = "1.0"
async-trait = "0.1.56"
apt-pkg-native = "0.3.2"
base64 = "0.13"
bitflags = "1.2.1"
bitflags = "2.4"
bytes = "1.0"
cidr = "0.2.1"
crc32fast = "1"

3
debian/control vendored
View File

@ -18,7 +18,7 @@ Build-Depends: bash-completion,
librust-apt-pkg-native-0.3+default-dev (>= 0.3.2-~~),
librust-async-trait-0.1+default-dev (>= 0.1.56-~~),
librust-base64-0.13+default-dev,
librust-bitflags-1+default-dev (>= 1.2.1-~~),
librust-bitflags-2+default-dev (>= 2.4-~~),
librust-bytes-1+default-dev,
librust-cidr-0.2+default-dev (>= 0.2.1-~~),
librust-const-format-0.2+default-dev,
@ -80,7 +80,6 @@ Build-Depends: bash-completion,
librust-proxmox-rest-server-0.5+rate-limited-stream-dev (>= 0.5.1-~~),
librust-proxmox-rest-server-0.5+templates-dev (>= 0.5.1-~~),
librust-proxmox-router-2+cli-dev,
librust-proxmox-router-2+default-dev,
librust-proxmox-router-2+server-dev,
librust-proxmox-rrd-0.1+default-dev,
librust-proxmox-schema-3+api-macro-dev,

View File

@ -42,7 +42,7 @@ pub struct PxarExtractOptions<'a> {
}
bitflags! {
#[derive(Default)]
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub struct OverwriteFlags: u8 {
/// Overwrite existing entries file content
const FILE = 0x1;

View File

@ -8,6 +8,7 @@ use libc::c_long;
use bitflags::bitflags;
bitflags! {
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Flags: u64 {
/// FAT-style 2s time granularity
const WITH_2SEC_TIME = 0x40;

View File

@ -75,6 +75,7 @@ pub struct BlockHeader {
bitflags! {
/// Header flags (e.g. `END_OF_STREAM` or `INCOMPLETE`)
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub struct BlockHeaderFlags: u8 {
/// Marks the last block in a stream.
const END_OF_STREAM = 0b00000001;

View File

@ -12,6 +12,7 @@ bitflags::bitflags! {
/// Tape Alert Flags
///
/// See LTO SCSI Reference LOG_SENSE - LP 2Eh: TapeAlerts
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub struct TapeAlertFlags: u64 {
#[allow(clippy::eq_op)]
const READ_WARNING = 1 << (0x0001 -1);