diff options
| author | diogo464 <[email protected]> | 2025-12-16 14:02:18 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-12-16 14:02:20 +0000 |
| commit | 28c4116565bfe71ef7328f4a34458501ef3dc5b0 (patch) | |
| tree | ca0cbefea550122aff5e325c2480e3a7ef421059 /src/lib.rs | |
| parent | a16dbf1d55a6f5b28236eef566eea0f44524840c (diff) | |
fixed clippy warnings
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1047,7 +1047,7 @@ pub async fn run<T: Transport>(device: &mut Device<'_>, transport: &mut T) -> Re | |||
| 1047 | .resize(device.publish_buffer.capacity(), 0) | 1047 | .resize(device.publish_buffer.capacity(), 0) |
| 1048 | .expect("resize to capacity should never fail"); | 1048 | .expect("resize to capacity should never fail"); |
| 1049 | let n = | 1049 | let n = |
| 1050 | serde_json_core::to_slice(&tracker_state, &mut device.publish_buffer) | 1050 | serde_json_core::to_slice(&tracker_state, device.publish_buffer) |
| 1051 | .expect("publish buffer too small for tracker state payload"); | 1051 | .expect("publish buffer too small for tracker state payload"); |
| 1052 | device.publish_buffer.truncate(n); | 1052 | device.publish_buffer.truncate(n); |
| 1053 | } | 1053 | } |
