Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
divi255 committed Jul 9, 2024
1 parent eb3ed70 commit 5262475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ impl<'a, V: VectorTrait<u8>> ModbusFrame<'a, V> {
}
self.frame_start = 6;
}
if self.frame_start >= self.buf.len(){
if self.frame_start >= self.buf.len() {
return Err(ErrorKind::FrameBroken);
}
let unit = self.buf[self.frame_start];
Expand Down

0 comments on commit 5262475

Please sign in to comment.