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
Implement
@length
on collections #2028Implement
@length
on collections #2028Changes from 31 commits
91ca287
4e79202
000175c
6299e29
617591d
d0a6fab
b71d1a9
e684ce7
c255474
c109bb5
4ebc39a
eaa4e6f
ba85018
94de917
b8b029f
8be886c
e414189
273d71c
6c50000
acc3c98
6c1a2c2
c190d36
ad2d5e9
818477e
715f96b
d2c59da
2d22133
1eb8650
072df40
1a37a33
3f906a2
dfa3979
925c225
3b92790
bb24581
5cebcb9
074276a
28a3397
b0679c5
ebaa3f0
0d5a313
ac2f737
57cd6f1
964d78f
838ada5
1e818e4
111ee98
a0e561e
f759439
3f97e7c
9e8c22b
0bea362
92ceba8
01cfe23
1ce32c8
3b6932f
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.
We need to add a list with the
@length
trait inConA
.We need to add a list with the
@length
trait bound with@httpQuery
.We need to add a list with the
@length
trait bound with@httpHeader
.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.
Done in 964d78f...111ee98.
This uncovered a bug in
http_serde.rs
, I probably need to make the same changes there as for the JSON customization.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.
This should be fixed in f759439.
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.
Weird syntax, but this makes
Context
covariant inT
: it makesContext<T> : Context<U> where T : U
.In particular, it lets us use
Context<CollectionShape>
in aContext<Shape>
argument, which I needed here.