diff --git a/aya/src/programs/links.rs b/aya/src/programs/links.rs index 1f7a68f0..129d5952 100644 --- a/aya/src/programs/links.rs +++ b/aya/src/programs/links.rs @@ -258,7 +258,7 @@ macro_rules! define_link_wrapper { impl From<$wrapper> for $base { fn from(w: $wrapper) -> $base { - w.into() + w.0 } } }; diff --git a/test/integration-test/src/tests/load.rs b/test/integration-test/src/tests/load.rs index 8ee257be..b33e6ab5 100644 --- a/test/integration-test/src/tests/load.rs +++ b/test/integration-test/src/tests/load.rs @@ -61,7 +61,7 @@ fn multiple_btf_maps() -> anyhow::Result<()> { } fn is_loaded() -> bool { - let output = Command::new("bpftool").args(&["prog"]).output().unwrap(); + let output = Command::new("bpftool").args(["prog"]).output().unwrap(); let stdout = String::from_utf8(output.stdout).unwrap(); stdout.contains("test_unload") }