From 6c08d69f416d3e2feba4328bd2804291b4f98061 Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Tue, 23 Apr 2024 00:41:54 +0200 Subject: [PATCH] sasl: remove unused code --- crates/sasl/src/lib.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/sasl/src/lib.rs b/crates/sasl/src/lib.rs index e00d67b..75f69c5 100644 --- a/crates/sasl/src/lib.rs +++ b/crates/sasl/src/lib.rs @@ -79,10 +79,6 @@ mod test { fn test_fail_if_size_less_then_3() { let orig = b"login\x00pass"; let encoded = general_purpose::STANDARD.encode(orig); - let expected = AuthBody { - login: "login".to_string(), - password: "pass".to_string(), - }; let result = AuthBody::from_str(encoded.as_bytes()); assert!(result.is_err()); @@ -92,10 +88,6 @@ mod test { fn test_fail_if_size_greater_then_3() { let orig = b"first\x00login\x00pass\x00other"; let encoded = general_purpose::STANDARD.encode(orig); - let expected = AuthBody { - login: "login".to_string(), - password: "pass".to_string(), - }; let result = AuthBody::from_str(encoded.as_bytes()); assert!(result.is_err());