chore: declare and check MSRV (#1034)
* chore: declare and check MSRV * fix: clippy fixes for collapsing if-statements * ci: add explicit contents read permission to MSRV job
This commit is contained in:
parent
e660b805ee
commit
76988023b2
1 changed files with 322 additions and 315 deletions
|
|
@ -238,13 +238,13 @@ impl ClientHandler for MrtrClient {
|
|||
request: ElicitRequestParams,
|
||||
_context: RequestContext<RoleClient>,
|
||||
) -> Result<ElicitResult, ErrorData> {
|
||||
if let ElicitRequestParams::FormElicitationParams { message, .. } = &request {
|
||||
if message == "FAIL" {
|
||||
return Err(ErrorData::internal_error(
|
||||
"elicitation handler failed",
|
||||
None,
|
||||
));
|
||||
}
|
||||
if let ElicitRequestParams::FormElicitationParams { message, .. } = &request
|
||||
&& message == "FAIL"
|
||||
{
|
||||
return Err(ErrorData::internal_error(
|
||||
"elicitation handler failed",
|
||||
None,
|
||||
));
|
||||
}
|
||||
Ok(ElicitResult::new(ElicitationAction::Accept).with_content(json!({ "name": "Ferris" })))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue