diff --git a/crates/lib/src/buffer.rs b/crates/lib/src/buffer.rs index 581ce8f..d16745d 100644 --- a/crates/lib/src/buffer.rs +++ b/crates/lib/src/buffer.rs @@ -149,7 +149,8 @@ impl<'a, B: ByteOrder> Buffer<'a, B> { if self.cursor > self.data_length() { return Err(PacketUnderflow.context(format!( "Cursor position {} is out of bounds when reading string. Buffer length: {}", - self.cursor, self.data_length() + self.cursor, + self.data_length() ))); }