Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: CDDL grammar correction for RFC8610 #61
feat: CDDL grammar correction for RFC8610 #61
Changes from 13 commits
37643c2
217c16f
40bda27
45dfa8f
19aa070
b94d969
b0607d3
4267afd
10884a6
f2c9e22
5dd9c20
1c0bf32
1e7d1ce
8e1cc71
7c9fa06
f0cf1e6
3c2bbd3
0682361
a2d738c
a3410f6
68e61b4
0c5942a
0754589
58ec3ac
e72029e
4cc1736
e1bf0ba
d391c81
6da42d3
dd7f8a4
07eed72
edf532e
4a77203
321aaaa
3689b59
0dca0dc
dd11923
05f863b
29bef0e
188cb15
5140506
353fa21
ac3de3a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
CDDLError
type is redundant in this case. And we can replace with theCDDLErrorType
(previously rename it toCDDLError
).Also returning
Box
here does not make any sense and, we can return just aCDDLError
here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are issues with lifetimes when data in the AST is not boxed, and this can include the error.
But @apskhem can validate this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It had a technical problem here to have both
CDDLError
andCDDLErrorType
due to the generic trait forrfc_8610::Rule
,rfc_9165::Rule
, andcddl::Rule
cannot be dynamically storing into the struct. It raised this error: