aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1b7c79a..edc60f2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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 }