mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-26 03:20:24 +00:00
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:
parent
dd70d89b73
commit
5422584baa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user