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 19, 2024
1 parent ddfeed2 commit c92ed0f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Upgrade crates to Rust 2021 edition.

### Removed
- Remove `Ord` and `PartialOrd` implementation on `States` and `ConntrackStatus`.


## [0.6.2] - 2022-02-11
### Added
Expand Down
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, 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, Hash)]
pub struct ConntrackStatus: u32 {
const EXPECTED = 1;
const SEEN_REPLY = 2;
Expand Down

0 comments on commit c92ed0f

Please sign in to comment.