Skip to content

Commit

Permalink
chore: removes elided lifetime warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Dec 4, 2024
1 parent a469ada commit 4e07438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edc-connector-client/src/types/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ pub struct WithContextRef<'a, T> {
}

impl<'a, T> WithContextRef<'a, T> {
pub fn new(context: Value, inner: &'a T) -> WithContextRef<T> {
pub fn new(context: Value, inner: &'a T) -> WithContextRef<'a, T> {
WithContextRef { context, inner }
}

pub fn default_context(inner: &'a T) -> WithContextRef<T> {
pub fn default_context(inner: &'a T) -> WithContextRef<'a, T> {
WithContextRef::new(json!({ "@vocab": EDC_NAMESPACE }), inner)
}

pub fn odrl_context(inner: &'a T) -> WithContextRef<T> {
pub fn odrl_context(inner: &'a T) -> WithContextRef<'a, T> {
WithContextRef::new(json!([ ODRL_CONTEXT,{ "@vocab": EDC_NAMESPACE }]), inner)
}
}
Expand Down

0 comments on commit 4e07438

Please sign in to comment.