Skip to content

Commit 72a2328

Browse files
committed
fix tests
1 parent 44a5d80 commit 72a2328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlx-core/src/mssql/protocol/pre_login.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ fn test_encode_pre_login() {
321321
build: 0,
322322
sub_build: 0,
323323
},
324-
encryption: Encrypt::ON,
324+
encryption: Encrypt::On,
325325
instance: Some("".to_string()),
326326
thread_id: Some(0x00000DB8),
327327
multiple_active_result_sets: Some(true),
@@ -359,5 +359,5 @@ fn test_decode_pre_login() {
359359
assert_eq!(pre_login.version.sub_build, 0);
360360

361361
// ENCRYPT_OFF
362-
assert_eq!(pre_login.encryption.bits(), 0);
362+
assert_eq!(u8::from(pre_login.encryption), 0);
363363
}

0 commit comments

Comments
 (0)