chore: clippy

This commit is contained in:
Vukašin Vojinović 2025-10-27 13:05:21 +01:00 committed by Jeremy Soller
parent a7f8a62807
commit 7bab53c5b4
5 changed files with 79 additions and 101 deletions

View file

@ -49,15 +49,13 @@ async fn main() {
auth_message_type: AuthMessageType::Secret,
auth_message: "MOCKING:".to_string(),
},
Request::PostAuthMessageResponse { response } => {
match response.as_ref().map(|x| x.as_str()) {
Some("password") => Response::Success,
_ => Response::Error {
error_type: ErrorType::AuthError,
description: "pam_authenticate: AUTH_ERR".to_string(),
},
}
}
Request::PostAuthMessageResponse { response } => match response.as_deref() {
Some("password") => Response::Success,
_ => Response::Error {
error_type: ErrorType::AuthError,
description: "pam_authenticate: AUTH_ERR".to_string(),
},
},
Request::StartSession { .. } => Response::Success,
Request::CancelSession => Response::Success,
};