File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
lazer/sdk/rust/protocol/src Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,11 @@ impl PayloadData {
9999 }
100100 PriceFeedProperty :: FundingTimestamp => {
101101 PayloadPropertyValue :: FundingTimestamp ( feed. funding_timestamp )
102- } ,
102+ }
103103 PriceFeedProperty :: FundingRateInterval => {
104- PayloadPropertyValue :: FundingRateInterval ( feed. funding_rate_interval )
104+ PayloadPropertyValue :: FundingRateInterval (
105+ feed. funding_rate_interval ,
106+ )
105107 }
106108 } )
107109 . collect ( ) ,
@@ -151,11 +153,10 @@ impl PayloadData {
151153 PayloadPropertyValue :: FundingTimestamp ( timestamp) => {
152154 writer. write_u8 ( PriceFeedProperty :: FundingTimestamp as u8 ) ?;
153155 write_option_timestamp :: < BO > ( & mut writer, * timestamp) ?;
154- } ,
156+ }
155157 & PayloadPropertyValue :: FundingRateInterval ( interval) => {
156158 writer. write_u8 ( PriceFeedProperty :: FundingRateInterval as u8 ) ?;
157159 write_option_duration :: < BO > ( & mut writer, interval) ?;
158-
159160 }
160161 }
161162 }
@@ -209,7 +210,8 @@ impl PayloadData {
209210 ) ?)
210211 } else if property == PriceFeedProperty :: FundingRateInterval as u8 {
211212 PayloadPropertyValue :: FundingRateInterval ( read_option_interval :: < BO > (
212- & mut reader, ) ?)
213+ & mut reader,
214+ ) ?)
213215 } else {
214216 bail ! ( "unknown property" ) ;
215217 } ;
Original file line number Diff line number Diff line change @@ -548,7 +548,7 @@ impl ParsedFeedPayload {
548548 confidence : None ,
549549 funding_rate : None ,
550550 funding_timestamp : None ,
551- funding_rate_interval : None
551+ funding_rate_interval : None ,
552552 } ;
553553 for & property in properties {
554554 match property {
You can’t perform that action at this time.
0 commit comments