From 2c8348d1d6726cd498cafa385d4c0ac7761db48e Mon Sep 17 00:00:00 2001 From: Robert Mordzon Date: Sun, 21 Jun 2026 20:10:00 +0200 Subject: [PATCH] fix(clippy): take self by value in PowerStatusV2::to_v1 (wrong_self_convention) --- src/proto/payloads.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/payloads.rs b/src/proto/payloads.rs index 1ddc8fa..7b6048c 100644 --- a/src/proto/payloads.rs +++ b/src/proto/payloads.rs @@ -311,7 +311,7 @@ impl PowerStatusV2 { /// consumes. Preserves the v1 host's existing semantics: `pd_contract_*` /// carried VSYS/IIN, `vbus_out`/`ibus_out` carried the TPS readback/limit, /// `temp_dc` was the hotter of the two sensors. - pub fn to_v1(&self) -> PowerStatusV1 { + pub fn to_v1(self) -> PowerStatusV1 { let temp_dc = if self.temp_mp_dc == i16::MIN { self.temp_lm_dc } else {