Skip to content

Commit

Permalink
fix(mysql): "exclusive range pattern is experimental" error
Browse files Browse the repository at this point in the history
closes #3472
  • Loading branch information
abonander committed Sep 3, 2024
1 parent fd80f99 commit 6cb6fce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqlx-mysql/src/io/buf_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ impl MySqlBufMutExt for Vec<u8> {
let encoded_le = v.to_le_bytes();

match v {
..251 => self.push(encoded_le[0]),
251..0x1_00_00 => {
0..=250 => self.push(encoded_le[0]),
251..=0xFF_FF => {
self.push(0xfc);
self.extend_from_slice(&encoded_le[..2]);
}
0x1_00_00..0x1_00_00_00 => {
0x1_00_00..=0xFF_FF_FF => {
self.push(0xfd);
self.extend_from_slice(&encoded_le[..3]);
}
Expand Down

0 comments on commit 6cb6fce

Please sign in to comment.