(input: syn::parse::ParseStream<'_>)
| 10 | |
| 11 | impl Parse for EmptyAttrArgs { |
| 12 | fn parse(input: syn::parse::ParseStream<'_>) -> Result<Self> { |
| 13 | if input.is_empty() { |
| 14 | Ok(Self) |
| 15 | } else { |
| 16 | Err(input.error("`State` does not accept arguments")) |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | #[allow(non_snake_case)] |
no test coverage detected