From a9e2f55c91d1fb6fc58add79c3c26125a1fd4a2c Mon Sep 17 00:00:00 2001 From: Brian Schwind Date: Mon, 5 Feb 2024 12:24:53 +0900 Subject: [PATCH] Fix a clippy lint (#300) --- netlink-request/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {