File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ impl QdrantClient {
283283 . into_inner ( ) ;
284284 resp. result = result;
285285 resp. time += time;
286- HardwareUsage :: aggregate_opts ( & mut resp. usage , & usage) ;
286+ HardwareUsage :: aggregate_opts ( & resp. usage , & usage) ;
287287 }
288288 Ok ( resp)
289289 } )
Original file line number Diff line number Diff line change @@ -324,8 +324,8 @@ impl HardwareUsage {
324324 pub ( crate ) fn aggregate_opts ( this : & Option < Self > , other : & Option < Self > ) -> Option < Self > {
325325 match ( this, other) {
326326 ( Some ( this) , Some ( other) ) => Some ( this. aggregate ( other) ) ,
327- ( Some ( this) , None ) => Some ( this. clone ( ) ) ,
328- ( None , Some ( other) ) => Some ( other. clone ( ) ) ,
327+ ( Some ( this) , None ) => Some ( * this) ,
328+ ( None , Some ( other) ) => Some ( * other) ,
329329 ( None , None ) => None ,
330330 }
331331 }
You can’t perform that action at this time.
0 commit comments