Skip to content

Commit d35bca0

Browse files
committed
Make sure to add backtrace to all fields
1 parent 37e1b77 commit d35bca0

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

netwatch/src/interfaces/bsd.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -606,13 +606,13 @@ type RIBType = i32;
606606
#[non_exhaustive]
607607
pub enum RouteError {
608608
#[snafu(display("message mismatch"))]
609-
MessageMismatch,
609+
MessageMismatch {},
610610
#[snafu(display("message too short"))]
611-
MessageTooShort,
611+
MessageTooShort {},
612612
#[snafu(display("invalid message"))]
613-
InvalidMessage,
613+
InvalidMessage {},
614614
#[snafu(display("invalid address"))]
615-
InvalidAddress,
615+
InvalidAddress {},
616616
#[snafu(display("invalid rib type {rib_type}"))]
617617
InvalidRibType { rib_type: RIBType },
618618
#[snafu(display("io error calling '{name}'"))]

netwatch/src/interfaces/linux.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ pub enum Error {
2121
Io { source: std::io::Error },
2222
#[cfg(not(target_os = "android"))]
2323
#[snafu(display("no netlink response"))]
24-
NoResponse,
24+
NoResponse {},
2525
#[cfg(not(target_os = "android"))]
2626
#[snafu(display("interface not found"))]
27-
InterfaceNotFound,
27+
InterfaceNotFound {},
2828
#[snafu(display("iface field is missing"))]
29-
MissingIfaceField,
29+
MissingIfaceField {},
3030
#[snafu(display("destination field is missing"))]
31-
MissingDestinationField,
31+
MissingDestinationField {},
3232
#[snafu(display("mask field is missing"))]
33-
MissingMaskField,
33+
MissingMaskField {},
3434
#[cfg(not(target_os = "android"))]
3535
#[snafu(display("netlink"))]
3636
Netlink { source: rtnetlink::Error },

netwatch/src/interfaces/windows.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub enum Error {
2525
#[snafu(display("IO"))]
2626
Io { source: std::io::Error },
2727
#[snafu(display("not route found"))]
28-
NoRoute,
28+
NoRoute {},
2929
#[snafu(display("WMI"))]
3030
Wmi { source: wmi::WMIError },
3131
}

netwatch/src/netmon.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct Monitor {
4444
#[non_exhaustive]
4545
pub enum Error {
4646
#[snafu(display("channel closed"))]
47-
ChannelClosed,
47+
ChannelClosed {},
4848
#[snafu(display("actor error"))]
4949
Actor { source: actor::Error },
5050
}

0 commit comments

Comments
 (0)