@@ -26,7 +26,7 @@ pub struct Context<'ctx> {
2626 inner : & ' ctx ContextInternal ,
2727}
2828
29- impl < ' ctx > Context < ' ctx > {
29+ impl Context < ' _ > {
3030 /// Get request headers.
3131 pub fn headers ( & self ) -> & HeaderMap {
3232 & self . headers
@@ -60,7 +60,7 @@ pub struct SharedObjectContext<'ctx> {
6060 pub ( crate ) inner : & ' ctx ContextInternal ,
6161}
6262
63- impl < ' ctx > SharedObjectContext < ' ctx > {
63+ impl SharedObjectContext < ' _ > {
6464 /// Get object key.
6565 pub fn key ( & self ) -> & str {
6666 & self . key
@@ -100,7 +100,7 @@ pub struct ObjectContext<'ctx> {
100100 pub ( crate ) inner : & ' ctx ContextInternal ,
101101}
102102
103- impl < ' ctx > ObjectContext < ' ctx > {
103+ impl ObjectContext < ' _ > {
104104 /// Get object key.
105105 pub fn key ( & self ) -> & str {
106106 & self . key
@@ -153,7 +153,7 @@ impl<'ctx> From<(&'ctx ContextInternal, InputMetadata)> for SharedWorkflowContex
153153 }
154154}
155155
156- impl < ' ctx > SharedWorkflowContext < ' ctx > {
156+ impl SharedWorkflowContext < ' _ > {
157157 /// Get workflow key.
158158 pub fn key ( & self ) -> & str {
159159 & self . key
@@ -193,7 +193,7 @@ impl<'ctx> From<(&'ctx ContextInternal, InputMetadata)> for WorkflowContext<'ctx
193193 }
194194}
195195
196- impl < ' ctx > WorkflowContext < ' ctx > {
196+ impl WorkflowContext < ' _ > {
197197 /// Get workflow key.
198198 pub fn key ( & self ) -> & str {
199199 & self . key
@@ -832,13 +832,13 @@ pub trait ContextReadState<'ctx>: private::SealedContext<'ctx> {
832832 /// Get state
833833 fn get < T : Deserialize + ' static > (
834834 & self ,
835- key : & str ,
835+ key : & ' ctx str ,
836836 ) -> impl Future < Output = Result < Option < T > , TerminalError > > + ' ctx {
837837 self . inner_context ( ) . get ( key)
838838 }
839839
840840 /// Get state keys
841- fn get_keys ( & self ) -> impl Future < Output = Result < Vec < String > , TerminalError > > + ' ctx {
841+ fn get_keys ( & ' ctx self ) -> impl Future < Output = Result < Vec < String > , TerminalError > > + ' ctx {
842842 self . inner_context ( ) . get_keys ( )
843843 }
844844}
@@ -923,15 +923,15 @@ pub trait ContextPromises<'ctx>: private::SealedContext<'ctx> {
923923 /// Create a promise
924924 fn promise < T : Deserialize + ' static > (
925925 & ' ctx self ,
926- key : & str ,
926+ key : & ' ctx str ,
927927 ) -> impl DurableFuture < Output = Result < T , TerminalError > > + ' ctx {
928928 self . inner_context ( ) . promise ( key)
929929 }
930930
931931 /// Peek a promise
932932 fn peek_promise < T : Deserialize + ' static > (
933933 & self ,
934- key : & str ,
934+ key : & ' ctx str ,
935935 ) -> impl Future < Output = Result < Option < T > , TerminalError > > + ' ctx {
936936 self . inner_context ( ) . peek_promise ( key)
937937 }
0 commit comments