Skip to content

Commit ab68866

Browse files
committed
i should have tested locally
1 parent ebb1947 commit ab68866

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/sbp/src/sbp_string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ impl SbpString<Vec<u8>, DoubleNullTerminated> {
101101
data: impl Into<Vec<u8>>,
102102
) -> Result<Self, DoubleNullTerminatedError> {
103103
let vec = data.into();
104-
if let [.., &two, &one] = vec.as_slice() {
105-
if two = 0 && one == 0 {
104+
if let [.., two, one] = vec.as_slice() {
105+
if two == &0 && one == &0 {
106106
return Ok(SbpString::new(vec));
107107
}
108108
};

0 commit comments

Comments
 (0)