Skip to content

Commit f7a67bd

Browse files
committed
fix: fmt
1 parent de0c773 commit f7a67bd

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/field_types/ipv4_options.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ mod ipv4_options_tests {
233233
assert_eq!(Ipv4Options::from(0u32).to_string(), "none");
234234
assert_eq!(Ipv4Options::from(1u32).to_string(), "RR");
235235
assert_eq!(Ipv4Options::from(0x60u32).to_string(), "SEC|NOP");
236-
assert_eq!(Ipv4Options::from(0x7Fu32).to_string(), "RR|CIPSO|E-SEC|TS|LSR|SEC|NOP");
236+
assert_eq!(
237+
Ipv4Options::from(0x7Fu32).to_string(),
238+
"RR|CIPSO|E-SEC|TS|LSR|SEC|NOP"
239+
);
237240
}
238241

239242
#[test]

src/field_types/ipv6_extension_headers.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ mod ipv6_extension_headers_tests {
112112
assert_eq!(Ipv6ExtensionHeaders::from(0u32).to_string(), "none");
113113
assert_eq!(Ipv6ExtensionHeaders::from(1u32).to_string(), "DST");
114114
assert_eq!(Ipv6ExtensionHeaders::from(0x03u32).to_string(), "DST|FRAG");
115-
assert_eq!(Ipv6ExtensionHeaders::from(0x3Fu32).to_string(), "DST|FRAG|HBH|RT|AH|ESP");
115+
assert_eq!(
116+
Ipv6ExtensionHeaders::from(0x3Fu32).to_string(),
117+
"DST|FRAG|HBH|RT|AH|ESP"
118+
);
116119
}
117120

118121
#[test]

src/field_types/nat_originating_address_realm.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ mod nat_originating_address_realm_tests {
7676
fn test_display() {
7777
assert_eq!(NatOriginatingAddressRealm::from(1).to_string(), "Private");
7878
assert_eq!(NatOriginatingAddressRealm::from(2).to_string(), "Public");
79-
assert_eq!(NatOriginatingAddressRealm::from(0).to_string(), "Unknown(0)");
79+
assert_eq!(
80+
NatOriginatingAddressRealm::from(0).to_string(),
81+
"Unknown(0)"
82+
);
8083
}
8184

8285
#[test]

src/variable_versions/ipfix/types.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,7 @@ pub(crate) trait CommonTemplate {
356356
// share the same (field_type_number, enterprise_number) — they live in
357357
// different conceptual arrays. For regular Templates (no scope fields),
358358
// this degenerates to a single-pass check over all fields.
359-
let scope_count = self
360-
.get_scope_field_count()
361-
.map(usize::from)
362-
.unwrap_or(0);
359+
let scope_count = self.get_scope_field_count().map(usize::from).unwrap_or(0);
363360
let fields = self.get_fields();
364361

365362
let mut seen = std::collections::HashSet::with_capacity(fields.len());

0 commit comments

Comments
 (0)