diff --git a/netlink-request/src/lib.rs b/netlink-request/src/lib.rs index ca10b6e..1baf446 100644 --- a/netlink-request/src/lib.rs +++ b/netlink-request/src/lib.rs @@ -61,7 +61,7 @@ mod linux { let responses = netlink_request_genl::(genlmsg, Some(NLM_F_REQUEST | NLM_F_ACK))?; - match responses.get(0) { + match responses.first() { Some(NetlinkMessage { payload: NetlinkPayload::InnerMessage(GenlMessage {