From e852f7e0cc574de8fc5f32896320c9e919132946 Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Sun, 29 May 2022 12:26:57 +0900 Subject: [PATCH] test: Update to use non-mut map types --- test/cases/020_elf/000_maps/map_test.ebpf.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cases/020_elf/000_maps/map_test.ebpf.rs b/test/cases/020_elf/000_maps/map_test.ebpf.rs index 609e9362..c8d45df3 100644 --- a/test/cases/020_elf/000_maps/map_test.ebpf.rs +++ b/test/cases/020_elf/000_maps/map_test.ebpf.rs @@ -14,10 +14,10 @@ use aya_bpf::{ }; #[map] -static mut FOO: Array = Array::::with_max_entries(10, 0); +static FOO: Array = Array::::with_max_entries(10, 0); #[map(name = "BAR")] -static mut BAZ: Array = Array::::with_max_entries(10, 0); +static BAZ: Array = Array::::with_max_entries(10, 0); #[xdp] pub fn pass(ctx: XdpContext) -> u32 { @@ -34,4 +34,4 @@ unsafe fn try_pass(_ctx: XdpContext) -> Result { #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe { core::hint::unreachable_unchecked() } -} \ No newline at end of file +}