Skip to content

Return a vec / array in crossroads #383

Answered by hellow554
hellow554 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, my bad, but this is somewhat inconvenient...

The correct solution would be:

Ok((vec![(3_u32, 4_i64, 5_u8)],))

so a 1 sized tuple instead of the vec directly. Is there a reason for this, or just a technical decision?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@diwic
Comment options

Answer selected by diwic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants