Fix a clippy lint (#300)
parent
aa1ac515e8
commit
a9e2f55c91
|
@ -61,7 +61,7 @@ mod linux {
|
||||||
let responses =
|
let responses =
|
||||||
netlink_request_genl::<GenlCtrl>(genlmsg, Some(NLM_F_REQUEST | NLM_F_ACK))?;
|
netlink_request_genl::<GenlCtrl>(genlmsg, Some(NLM_F_REQUEST | NLM_F_ACK))?;
|
||||||
|
|
||||||
match responses.get(0) {
|
match responses.first() {
|
||||||
Some(NetlinkMessage {
|
Some(NetlinkMessage {
|
||||||
payload:
|
payload:
|
||||||
NetlinkPayload::InnerMessage(GenlMessage {
|
NetlinkPayload::InnerMessage(GenlMessage {
|
||||||
|
|
Loading…
Reference in New Issue