From d7e5f31b68e71e66b2280f1b4d471a13e6c3bf2c Mon Sep 17 00:00:00 2001 From: martinsoees Date: Fri, 12 Jul 2024 03:53:34 -0400 Subject: [PATCH] cargo fmt --- test/integration-test/src/tests/relocations.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/integration-test/src/tests/relocations.rs b/test/integration-test/src/tests/relocations.rs index d4c44e3f..2c032671 100644 --- a/test/integration-test/src/tests/relocations.rs +++ b/test/integration-test/src/tests/relocations.rs @@ -3,11 +3,8 @@ use test_log::test; #[test] fn ignored_map_relocation_by_name() { - let mut ebpf = relocation_load_and_attach( - "test_ignored_map_relocation", - crate::IGNORE_MAP, - "RINGBUF", - ); + let mut ebpf = + relocation_load_and_attach("test_ignored_map_relocation", crate::IGNORE_MAP, "RINGBUF"); let perf = ebpf.take_map("PERFBUF"); @@ -49,11 +46,7 @@ fn text_64_64_reloc() { assert_eq!(m.get(&1, 0).unwrap(), 3); } -fn relocation_load_and_attach( - name: &str, - bytes: &[u8], - disable_map_name: &str, -) -> Ebpf { +fn relocation_load_and_attach(name: &str, bytes: &[u8], disable_map_name: &str) -> Ebpf { let mut ebpf = EbpfLoader::new() .ignore_maps_by_name(&[disable_map_name]) .set_global("RINGBUF_SUPPORTED", &0, true)