This commit is contained in:
J H
2023-12-14 12:36:35 -07:00
parent 68c8881c0b
commit e86cd8275e
7 changed files with 239 additions and 126 deletions

View File

@@ -966,7 +966,7 @@ pub fn parse_param_attrs(item: &mut ItemFn) -> Result<Vec<ParamType>> {
attr.span(),
"`context` and `response` are mutually exclusive",
));
} else if matches!(ty, ParamType::Context(_)) {
} else if matches!(ty, ParamType::ParentData(_)) {
return Err(Error::new(
attr.span(),
"`parent_data` and `response` are mutually exclusive",