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 ebb1947 commit ab68866Copy full SHA for ab68866
rust/sbp/src/sbp_string.rs
@@ -101,8 +101,8 @@ impl SbpString<Vec<u8>, DoubleNullTerminated> {
101
data: impl Into<Vec<u8>>,
102
) -> Result<Self, DoubleNullTerminatedError> {
103
let vec = data.into();
104
- if let [.., &two, &one] = vec.as_slice() {
105
- if two = 0 && one == 0 {
+ if let [.., two, one] = vec.as_slice() {
+ if two == &0 && one == &0 {
106
return Ok(SbpString::new(vec));
107
}
108
};
0 commit comments