File tree 4 files changed +11
-11
lines changed
4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -606,13 +606,13 @@ type RIBType = i32;
606
606
#[ non_exhaustive]
607
607
pub enum RouteError {
608
608
#[ snafu( display( "message mismatch" ) ) ]
609
- MessageMismatch ,
609
+ MessageMismatch { } ,
610
610
#[ snafu( display( "message too short" ) ) ]
611
- MessageTooShort ,
611
+ MessageTooShort { } ,
612
612
#[ snafu( display( "invalid message" ) ) ]
613
- InvalidMessage ,
613
+ InvalidMessage { } ,
614
614
#[ snafu( display( "invalid address" ) ) ]
615
- InvalidAddress ,
615
+ InvalidAddress { } ,
616
616
#[ snafu( display( "invalid rib type {rib_type}" ) ) ]
617
617
InvalidRibType { rib_type : RIBType } ,
618
618
#[ snafu( display( "io error calling '{name}'" ) ) ]
Original file line number Diff line number Diff line change @@ -21,16 +21,16 @@ pub enum Error {
21
21
Io { source : std:: io:: Error } ,
22
22
#[ cfg( not( target_os = "android" ) ) ]
23
23
#[ snafu( display( "no netlink response" ) ) ]
24
- NoResponse ,
24
+ NoResponse { } ,
25
25
#[ cfg( not( target_os = "android" ) ) ]
26
26
#[ snafu( display( "interface not found" ) ) ]
27
- InterfaceNotFound ,
27
+ InterfaceNotFound { } ,
28
28
#[ snafu( display( "iface field is missing" ) ) ]
29
- MissingIfaceField ,
29
+ MissingIfaceField { } ,
30
30
#[ snafu( display( "destination field is missing" ) ) ]
31
- MissingDestinationField ,
31
+ MissingDestinationField { } ,
32
32
#[ snafu( display( "mask field is missing" ) ) ]
33
- MissingMaskField ,
33
+ MissingMaskField { } ,
34
34
#[ cfg( not( target_os = "android" ) ) ]
35
35
#[ snafu( display( "netlink" ) ) ]
36
36
Netlink { source : rtnetlink:: Error } ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub enum Error {
25
25
#[ snafu( display( "IO" ) ) ]
26
26
Io { source : std:: io:: Error } ,
27
27
#[ snafu( display( "not route found" ) ) ]
28
- NoRoute ,
28
+ NoRoute { } ,
29
29
#[ snafu( display( "WMI" ) ) ]
30
30
Wmi { source : wmi:: WMIError } ,
31
31
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub struct Monitor {
44
44
#[ non_exhaustive]
45
45
pub enum Error {
46
46
#[ snafu( display( "channel closed" ) ) ]
47
- ChannelClosed ,
47
+ ChannelClosed { } ,
48
48
#[ snafu( display( "actor error" ) ) ]
49
49
Actor { source : actor:: Error } ,
50
50
}
You can’t perform that action at this time.
0 commit comments