File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3131// lands so we can drop the per-call heap allocation 
3232
3333use  std:: { 
34+     fmt:: Debug , 
3435    future:: Future , 
3536    pin:: Pin , 
3637    sync:: { 
@@ -235,7 +236,7 @@ struct TransportClient {
235236    error_count :  Arc < AtomicU64 > , 
236237} 
237238
238- impl  std :: fmt :: Debug  for  TransportClient  { 
239+ impl  Debug  for  TransportClient  { 
239240    fn  fmt ( & self ,  f :  & mut  std:: fmt:: Formatter < ' _ > )  -> std:: fmt:: Result  { 
240241        f. debug_struct ( "TransportClient" ) 
241242            . field ( "client_id" ,  & self . client_id ) 
Original file line number Diff line number Diff line change 1515
1616//! Enumerations that model Bybit string/int enums across HTTP and WebSocket payloads. 
1717
18+ use  std:: fmt:: Display ; 
19+ 
1820use  nautilus_model:: enums:: { AggressorSide ,  OrderSide } ; 
1921use  serde:: { Deserialize ,  Serialize } ; 
2022use  serde_repr:: { Deserialize_repr ,  Serialize_repr } ; 
@@ -322,7 +324,7 @@ pub enum BybitKlineInterval {
322324    Month1 , 
323325} 
324326
325- impl  std :: fmt :: Display  for  BybitKlineInterval  { 
327+ impl  Display  for  BybitKlineInterval  { 
326328    fn  fmt ( & self ,  f :  & mut  std:: fmt:: Formatter < ' _ > )  -> std:: fmt:: Result  { 
327329        let  s = match  self  { 
328330            Self :: Minute1  => "1" , 
Original file line number Diff line number Diff line change 1515
1616//! Domain types representing funding rate data for perpetual swap instruments. 
1717
18- use  std:: { collections:: HashMap ,  fmt:: Display } ; 
18+ use  std:: { collections:: HashMap ,  fmt:: Display ,  hash :: Hash } ; 
1919
2020use  indexmap:: IndexMap ; 
2121use  nautilus_core:: { UnixNanos ,  serialization:: Serializable } ; 
@@ -54,7 +54,7 @@ impl PartialEq for FundingRateUpdate {
5454    } 
5555} 
5656
57- impl  std :: hash :: Hash  for  FundingRateUpdate  { 
57+ impl  Hash  for  FundingRateUpdate  { 
5858    fn  hash < H :  std:: hash:: Hasher > ( & self ,  state :  & mut  H )  { 
5959        // Hash only the fields used in PartialEq to maintain consistency 
6060        self . instrument_id . hash ( state) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments