File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -85,26 +85,6 @@ impl<T: FromAnnotationLiteral> FromAnnotationArgument for T {
8585 }
8686}
8787
88- // impl<T: FromAnnotationLiteral> FromAnnotationArgument for ArrayExpr<T> {
89- // fn from_argument(argument: &ast::Node<ast::AnnotationArgument>) -> Result<Self, InstanceError> {
90- // match &argument.node {
91- // ast::AnnotationArgument::Array(array) => {
92- // let contents =
93- // array
94- // .iter()
95- // .map(|literal| T::from_literal(literal))
96- // .collect();
97- // ArrayExpr,
98- //
99- // node => Err(InstanceError::UnexpectedToken {
100- // expected: Token::Array,
101- // actual: node.into(),
102- // span: argument.span,
103- // }),
104- // }
105- // }
106- // }
107-
10888/// Parse an [`ast::AnnotationArgument`] as an annotation. This needs to be a separate trait from
10989/// [`FromAnnotationArgument`] so it does not collide wiith implementations for literals.
11090pub trait FromNestedAnnotation : Sized {
You can’t perform that action at this time.
0 commit comments