Skip to content

Implement Values for all collection types#346

Merged
GuillaumeGomez merged 1 commit intoaskama-rs:masterfrom
Kijewski:pr-more-values
Feb 9, 2025
Merged

Implement Values for all collection types#346
GuillaumeGomez merged 1 commit intoaskama-rs:masterfrom
Kijewski:pr-more-values

Conversation

@Kijewski
Copy link
Copy Markdown
Member

@Kijewski Kijewski commented Feb 9, 2025

No description provided.

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Could you add a test for each newly added one please?

@Kijewski
Copy link
Copy Markdown
Member Author

Kijewski commented Feb 9, 2025

Oops, good call! Turns out that it's not possible to use a HashSet, BTreeSet or BinaryHeap as Values, because Value is not Ord or Hash.

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

But it works on HashMap, so I'm a bit surprised it wouldn't work on sets.

@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Well in any case, this is already an improvement so let's merge it, thanks!

@GuillaumeGomez GuillaumeGomez merged commit c496c0b into askama-rs:master Feb 9, 2025
37 checks passed
@Kijewski Kijewski deleted the pr-more-values branch February 9, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants