Skip to content

Commit

Permalink
Upgrade bitflags dependency to latest (2.6.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jul 18, 2024
1 parent e51fe76 commit 55fdd20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nftnl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ nftnl-1-1-1 = ["nftnl-sys/nftnl-1-1-1"]
nftnl-1-1-2 = ["nftnl-sys/nftnl-1-1-2"]

[dependencies]
bitflags = "1.0.4"
bitflags = "2.6.0"
log = "0.4"
nftnl-sys = { path = "../nftnl-sys", version = "0.6.1" }

Expand Down
2 changes: 2 additions & 0 deletions nftnl/src/expr/ct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use nftnl_sys::{self as sys, libc};
use std::os::raw::c_char;

bitflags::bitflags! {
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct States: u32 {
const INVALID = 1;
const ESTABLISHED = 2;
Expand All @@ -13,6 +14,7 @@ bitflags::bitflags! {
}

bitflags::bitflags! {
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct ConntrackStatus: u32 {
const EXPECTED = 1;
const SEEN_REPLY = 2;
Expand Down

0 comments on commit 55fdd20

Please sign in to comment.