Skip to content

Commit

Permalink
fix: elided lifetimes in associated constant
Browse files Browse the repository at this point in the history
  • Loading branch information
EHfive committed Nov 20, 2024
1 parent 84147fb commit 9e7bb8d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/skel/einat/aya.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl EinatAya {
}

impl EinatEbpf for EinatAya {
const NAME: &str = "Aya";
const NAME: &'static str = "Aya";

type MapBinding = MapBinding;
type MapCt = MapCt;
Expand Down
2 changes: 1 addition & 1 deletion src/skel/einat/libbpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl EinatLibbpf {
}

impl EinatEbpf for EinatLibbpf {
const NAME: &str = "libbpf";
const NAME: &'static str = "libbpf";

type MapBinding = Map;
type MapCt = Map;
Expand Down
2 changes: 1 addition & 1 deletion src/skel/einat/libbpf_skel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ unsafe impl Send for EinatLibbpfSkel {}
unsafe impl Sync for EinatLibbpfSkel {}

impl EinatEbpf for EinatLibbpfSkel {
const NAME: &str = "libbpf skeleton";
const NAME: &'static str = "libbpf skeleton";

type MapBinding = Map;
type MapCt = Map;
Expand Down
2 changes: 1 addition & 1 deletion src/skel/einat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Default for EinatConstConfig {

/// Model trait for operations on our einat ebpf resources
pub trait EinatEbpf: Sized {
const NAME: &str;
const NAME: &'static str;

type MapBinding: EbpfHashMapMut<MapBindingKey, MapBindingValue>;

Expand Down

0 comments on commit 9e7bb8d

Please sign in to comment.