Skip to content

Commit da22bc8

Browse files
style: fix formatting in test assertions
1 parent 68a334f commit da22bc8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

netwatch/src/interfaces.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,7 @@ mod tests {
495495
));
496496

497497
// both empty
498-
assert!(prefixes_major_equal(
499-
std::iter::empty(),
500-
std::iter::empty(),
501-
));
498+
assert!(prefixes_major_equal(std::iter::empty(), std::iter::empty(),));
502499

503500
// different prefixes
504501
assert!(!prefixes_major_equal(

netwatch/src/interfaces/bsd.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,10 @@ mod tests {
10331033
let rib_type = libc::NET_RT_IFLIST;
10341034

10351035
let msgs = parse_rib(rib_type, &buf).unwrap();
1036-
assert!(msgs.is_empty(), "version-mismatched message should be skipped");
1036+
assert!(
1037+
msgs.is_empty(),
1038+
"version-mismatched message should be skipped"
1039+
);
10371040
}
10381041

10391042
#[test]

0 commit comments

Comments
 (0)