diff options
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 | } |
