diff --git a/examples/server.rs b/examples/server.rs index 5aaa01c..b9f4ae6 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -51,13 +51,15 @@ fn main() { auth_message_type: AuthMessageType::Secret, auth_message: "MOCKING:".to_string(), }, - Request::PostAuthMessageResponse { response } => match response.as_deref() { - Some("password") => Response::Success, - _ => Response::Error { - error_type: ErrorType::AuthError, - description: "AUTH_ERR".to_string(), - }, - }, + Request::PostAuthMessageResponse { response } => { + match response.as_deref() { + Some("password") => Response::Success, + _ => Response::Error { + error_type: ErrorType::AuthError, + description: "AUTH_ERR".to_string(), + }, + } + } Request::StartSession { .. } => Response::Success, Request::CancelSession => Response::Success, };