Skip to content

Commit

Permalink
fixup: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Jun 28, 2024
1 parent dd90f34 commit 0cae587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ impl PfCtl {
states
.into_iter()
.filter(|state| {
let parsed_state = State::from(state.clone());
let parsed_state = State::from(*state);
!filter(&parsed_state)
})
.map(|pfsync_state| {
Expand Down
1 change: 1 addition & 0 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::{AddrFamily, Error, ErrorKind, Result};

/// PF connection state
#[non_exhaustive]
#[allow(clippy::large_enum_variant)]
#[derive(Clone)]
pub enum State {
/// IP connection state
Expand Down

0 comments on commit 0cae587

Please sign in to comment.