diff --git a/aya/src/bpf.rs b/aya/src/bpf.rs index b8690935..6ec4c5c3 100644 --- a/aya/src/bpf.rs +++ b/aya/src/bpf.rs @@ -537,7 +537,7 @@ impl<'a> EbpfLoader<'a> { PinningType::ByName => { // pin maps in /sys/fs/bpf by default to align with libbpf // behavior https://github.com/libbpf/libbpf/blob/v1.2.2/src/libbpf.c#L2161. - let path: &Path = map_pin_path + let path = map_pin_path .as_deref() .unwrap_or_else(|| Path::new("/sys/fs/bpf"));