From 37afde3fca4787b6a1bcdad7fbf1b30c8e0000e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=C2=A0Decina?= Date: Fri, 18 Mar 2022 09:18:57 +0000 Subject: [PATCH] aya-gen: fix lint error --- aya-gen/src/getters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya-gen/src/getters.rs b/aya-gen/src/getters.rs index 8e0b45d8..a218bfee 100644 --- a/aya-gen/src/getters.rs +++ b/aya-gen/src/getters.rs @@ -62,7 +62,7 @@ impl<'a> GetterList<'a> { .get(field_ty_ident) .unwrap_or_else(|| panic!("{}", field_ty_ident.to_string())) .1; - getters.extend(self.getters(field_ident, sub_fields).drain(..).map( + getters.extend(self.getters(field_ident, sub_fields).into_iter().map( |mut getter| { getter.prefix.insert(0, ident); getter