diff --git a/rust/scx_utils/src/bpf_builder.rs b/rust/scx_utils/src/bpf_builder.rs index 3f92e2bae4..b12284b64f 100644 --- a/rust/scx_utils/src/bpf_builder.rs +++ b/rust/scx_utils/src/bpf_builder.rs @@ -341,7 +341,7 @@ impl BpfBuilder { Ok(cflags) } - const BPF_H_TAR: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/bpf_h.tar")); + const BPF_H_TAR: &'static [u8] = include_bytes!(concat!(env!("OUT_DIR"), "/bpf_h.tar")); fn install_bpf_h>(dest: P) -> Result<()> { let mut ar = tar::Archive::new(Self::BPF_H_TAR);