Formatting
This commit is contained in:
@@ -50,8 +50,8 @@ where
|
||||
let Path(s) = Path::<String>::from_request_parts(parts, state)
|
||||
.await
|
||||
.map_err(|_| AppError::BadRequest("Invalid case_id".into()))?;
|
||||
let id = CaseId::from_str(&s)
|
||||
.map_err(|_| AppError::BadRequest("Invalid case_id".into()))?;
|
||||
let id =
|
||||
CaseId::from_str(&s).map_err(|_| AppError::BadRequest("Invalid case_id".into()))?;
|
||||
Ok(CaseIdPath(id))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user