Skip to content

Commit b5806c7

Browse files
d-e-s-odanielocfb
authored andcommitted
Remove two unnecessary #[allow(clippy::needless_update)]
Remove two unnecessary #[allow(clippy::needless_update)] annotations. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent 533e0d2 commit b5806c7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libbpf-rs/tests/test.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ fn test_object_map_delete_batch() {
365365
#[tag(root)]
366366
#[test]
367367
pub fn test_map_info() {
368-
#[allow(clippy::needless_update)]
369368
let opts = libbpf_sys::bpf_map_create_opts {
370369
sz: size_of::<libbpf_sys::bpf_map_create_opts>() as libbpf_sys::size_t,
371370
map_flags: libbpf_sys::BPF_ANY,
@@ -1531,7 +1530,6 @@ fn test_object_map_create_and_pin() {
15311530
fn test_object_map_create_without_name() {
15321531
bump_rlimit_mlock();
15331532

1534-
#[allow(clippy::needless_update)]
15351533
let opts = libbpf_sys::bpf_map_create_opts {
15361534
sz: size_of::<libbpf_sys::bpf_map_create_opts>() as libbpf_sys::size_t,
15371535
map_flags: libbpf_sys::BPF_F_NO_PREALLOC,

0 commit comments

Comments
 (0)