File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -234,13 +234,14 @@ pub enum SockProtocol {
234
234
CanRaw = libc:: CAN_RAW ,
235
235
}
236
236
237
- /// The Controller Area Network broadcast manager protocol
238
- /// ([ref](https://docs.kernel.org/networking/can.html#how-to-use-socketcan))
239
- #[ cfg( target_os = "linux" ) ]
240
- #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
241
- #[ allow( non_upper_case_globals) ]
242
- pub const CanBcm : SockProtocol = SockProtocol :: NetlinkUserSock ; // Matches libc::CAN_BCM
243
-
237
+ impl SockProtocol {
238
+ /// The Controller Area Network broadcast manager protocol
239
+ /// ([ref](https://docs.kernel.org/networking/can.html#how-to-use-socketcan))
240
+ #[ cfg( target_os = "linux" ) ]
241
+ #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
242
+ #[ allow( non_upper_case_globals) ]
243
+ pub const CanBcm : SockProtocol = SockProtocol :: NetlinkUserSock ; // Matches libc::CAN_BCM
244
+ }
244
245
#[ cfg( any( target_os = "linux" ) ) ]
245
246
libc_bitflags ! {
246
247
/// Configuration flags for `SO_TIMESTAMPING` interface
You can’t perform that action at this time.
0 commit comments