Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Thea Rossman committed Dec 4, 2024
1 parent 014eff8 commit 004a959
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/filter/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//! Each filter stage returns a set of actions and a set of terminal actions.
//! The terminal actions are the subset of actions that are maintained through
//! the next filter stage.
use std::fmt;
use bitmask_enum::bitmask;
use std::fmt;

#[bitmask]
#[bitmask_config(vec_debug)]
Expand Down
4 changes: 1 addition & 3 deletions core/src/filter/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ fn has_path(from: &ProtocolName, to: &ProtocolName) -> bool {
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Predicate {
/// Matches on a protocol
Unary {
protocol: ProtocolName,
},
Unary { protocol: ProtocolName },
/// Matches on a field in a protocol
Binary {
protocol: ProtocolName,
Expand Down
3 changes: 3 additions & 0 deletions core/src/protocols/stream/conn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ pub(crate) enum ConnDataError {
}

/// A trait that all extractable ConnData fields must implement
/// This is used for filtering on L3/L4 fields following the packet
/// filter stage (i.e., when protocol, port, etc. cannot be extracted
/// fro a packet).
pub trait ConnField {
/// Parse from the ConnData
fn parse_from(conn: &ConnData) -> Result<Self>
Expand Down

0 comments on commit 004a959

Please sign in to comment.