scx_utils::BpfBuilder: Add 'static to BPF_H_TAR definition

Newer rustc is unhappy about lack of explicit lifetime parameter.
This commit is contained in:
Tejun Heo 2023-12-05 14:15:06 -10:00
parent dd70d89b73
commit 5422584baa

View File

@ -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<P: AsRef<Path>>(dest: P) -> Result<()> {
let mut ar = tar::Archive::new(Self::BPF_H_TAR);