From b6cd813af5fbd290a1f2e80b08c170ab868dfb3f Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sun, 28 Mar 2021 08:52:27 +0000 Subject: [PATCH] aya: fix program array key size --- aya/src/maps/array/program_array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/maps/array/program_array.rs b/aya/src/maps/array/program_array.rs index f6184e76..66ce4373 100644 --- a/aya/src/maps/array/program_array.rs +++ b/aya/src/maps/array/program_array.rs @@ -55,7 +55,7 @@ impl> ProgramArray { map_type: map_type as u32, })?; } - let expected = mem::size_of::(); + let expected = mem::size_of::(); let size = map.obj.def.key_size as usize; if size != expected { return Err(MapError::InvalidKeySize { size, expected });