We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bf818 commit dde9617Copy full SHA for dde9617
lib/rs/src/protocol/compact.rs
@@ -189,7 +189,7 @@ where
189
self.last_read_field_id = self
190
.last_read_field_id
191
.checked_add(field_delta as i16)
192
- .ok_or(crate::Error::Protocol(crate::ProtocolError {
+ .ok_or_else(|| crate::Error::Protocol(crate::ProtocolError {
193
kind: crate::ProtocolErrorKind::InvalidData,
194
message: format!(
195
"invalid field delta {} for last field id {}",
0 commit comments