sasl: remove unused code

This commit is contained in:
Nikita Vilunov 2024-04-23 00:41:54 +02:00
parent 12d30ca5c2
commit 6c08d69f41
1 changed files with 0 additions and 8 deletions

View File

@ -79,10 +79,6 @@ mod test {
fn test_fail_if_size_less_then_3() { fn test_fail_if_size_less_then_3() {
let orig = b"login\x00pass"; let orig = b"login\x00pass";
let encoded = general_purpose::STANDARD.encode(orig); 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()); let result = AuthBody::from_str(encoded.as_bytes());
assert!(result.is_err()); assert!(result.is_err());
@ -92,10 +88,6 @@ mod test {
fn test_fail_if_size_greater_then_3() { fn test_fail_if_size_greater_then_3() {
let orig = b"first\x00login\x00pass\x00other"; let orig = b"first\x00login\x00pass\x00other";
let encoded = general_purpose::STANDARD.encode(orig); 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()); let result = AuthBody::from_str(encoded.as_bytes());
assert!(result.is_err()); assert!(result.is_err());