Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland committed Nov 4, 2024
1 parent 1793bf9 commit 43c5f70
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 182 deletions.
111 changes: 0 additions & 111 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [
"dpdk-sys",
"errno",
"net",
"scratch",
# "scratch",
]
resolver = "2"

Expand Down
10 changes: 5 additions & 5 deletions dpdk/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ impl DevIndex {
return Err(DevInfoError::InvalidArgument);
}
val => {
let unknown = match StandardErrno::parse_i32(val) {
let _unknown = match StandardErrno::parse_i32(val) {
Ok(standard) => {
return Err(DevInfoError::UnknownStandard(standard));
}
Err(unknown) => unknown,
};
let unknown = match NegStandardErrno::parse_i32(val) {
let _unknown = match NegStandardErrno::parse_i32(val) {
Ok(standard) => {
return Err(DevInfoError::UnknownNegStandard(standard));
}
Expand Down Expand Up @@ -779,9 +779,9 @@ pub struct StartedDev {
pub info: DevInfo,
/// The configuration of the device.
pub config: DevConfig,
pub(crate) rx_queues: Vec<RxQueue>,
pub(crate) tx_queues: Vec<TxQueue>,
pub(crate) hairpin_queues: Vec<HairpinQueue>,
pub rx_queues: Vec<RxQueue>,
pub tx_queues: Vec<TxQueue>,
pub hairpin_queues: Vec<HairpinQueue>,
}

impl Dev {
Expand Down
Loading

0 comments on commit 43c5f70

Please sign in to comment.