Skip to content

Commit 36fa771

Browse files
committed
clippy
1 parent 228e4a9 commit 36fa771

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/client/points.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})

src/grpc_conversions/extensions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)