File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub trait MssqlBufMutExt {
55
66impl MssqlBufMutExt for Vec < u8 > {
77 fn put_utf16_str ( & mut self , s : & str ) {
8- let mut enc = s. encode_utf16 ( ) ;
8+ let enc = s. encode_utf16 ( ) ;
99 for ch in enc {
1010 self . extend_from_slice ( & ch. to_le_bytes ( ) ) ;
1111 }
Original file line number Diff line number Diff line change @@ -90,8 +90,7 @@ impl<'de> Decode<'de> for PreLogin {
9090 return Err ( err_protocol ! (
9191 "PRELOGIN: unexpected login option token: 0x{:02?}" ,
9292 token
93- )
94- . into ( ) ) ;
93+ ) ) ;
9594 }
9695 }
9796 }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ impl Row {
2020 let mut column_types = Vec :: with_capacity ( columns. len ( ) ) ;
2121
2222 let nulls = if nullable {
23- buf. get_bytes ( ( columns. len ( ) + 7 ) / 8 )
23+ buf. get_bytes ( columns. len ( ) . div_ceil ( 8 ) )
2424 } else {
2525 Bytes :: from_static ( b"" )
2626 } ;
You can’t perform that action at this time.
0 commit comments