-
Notifications
You must be signed in to change notification settings - Fork 102
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
Update to cosmwasm 2.0.0-beta.0 #487
Conversation
44e93dc
to
f4daa7b
Compare
/// | ||
/// The order of the output elements is determined by the iteration order of the provided set. | ||
fn set_to_csv(set: BTreeSet<impl AsRef<str>>) -> String { | ||
let list: Vec<&str> = set.iter().map(|e| e.as_ref()).collect(); | ||
list.join(",") |
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.
For the record, it seems like the intermediate vector can be avoided by using join from itertools. But since this is not on a hot path, we don't add the dependency for now.
https://stackoverflow.com/a/76223103/2013738
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.
Nice. I created #490 to break the whole topic down into small steps and get this merged.
Step 1 of #490