apply rustfmt
This commit is contained in:
parent
a29c1a9162
commit
b12f922df9
1 changed files with 9 additions and 7 deletions
|
|
@ -51,13 +51,15 @@ fn main() {
|
||||||
auth_message_type: AuthMessageType::Secret,
|
auth_message_type: AuthMessageType::Secret,
|
||||||
auth_message: "MOCKING:".to_string(),
|
auth_message: "MOCKING:".to_string(),
|
||||||
},
|
},
|
||||||
Request::PostAuthMessageResponse { response } => match response.as_deref() {
|
Request::PostAuthMessageResponse { response } => {
|
||||||
Some("password") => Response::Success,
|
match response.as_deref() {
|
||||||
_ => Response::Error {
|
Some("password") => Response::Success,
|
||||||
error_type: ErrorType::AuthError,
|
_ => Response::Error {
|
||||||
description: "AUTH_ERR".to_string(),
|
error_type: ErrorType::AuthError,
|
||||||
},
|
description: "AUTH_ERR".to_string(),
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
Request::StartSession { .. } => Response::Success,
|
Request::StartSession { .. } => Response::Success,
|
||||||
Request::CancelSession => Response::Success,
|
Request::CancelSession => Response::Success,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue