File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/client/client_request Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub struct ReadEventsRequest<'a> {
1313 pub options : Option < ReadEventsRequestOptions < ' a > > ,
1414}
1515
16- impl < ' a > ClientRequest for ReadEventsRequest < ' a > {
16+ impl ClientRequest for ReadEventsRequest < ' _ > {
1717 const URL_PATH : & ' static str = "/api/v1/read-events" ;
1818 const METHOD : Method = Method :: POST ;
1919
@@ -22,7 +22,7 @@ impl<'a> ClientRequest for ReadEventsRequest<'a> {
2222 }
2323}
2424
25- impl < ' a > StreamingRequest for ReadEventsRequest < ' a > {
25+ impl StreamingRequest for ReadEventsRequest < ' _ > {
2626 type ItemType = Event ;
2727
2828 fn build_stream (
@@ -32,14 +32,14 @@ impl<'a> StreamingRequest for ReadEventsRequest<'a> {
3232 #[ serde( tag = "type" , content = "payload" , rename_all = "camelCase" ) ]
3333 enum LineItem {
3434 Error { error : String } ,
35- Event ( Event ) ,
35+ Event ( Box < Event > ) ,
3636 }
3737
3838 impl From < LineItem > for Result < Event , ClientError > {
3939 fn from ( item : LineItem ) -> Self {
4040 match item {
4141 LineItem :: Error { error } => Err ( ClientError :: DBError ( error) ) ,
42- LineItem :: Event ( event_type) => Ok ( event_type) ,
42+ LineItem :: Event ( event_type) => Ok ( * event_type) ,
4343 }
4444 }
4545 }
You can’t perform that action at this time.
0 commit comments