Skip to content
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 Values for all collection types #346

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

Kijewski
Copy link
Collaborator

@Kijewski Kijewski commented Feb 9, 2025

No description provided.

@GuillaumeGomez
Copy link
Collaborator

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

@Kijewski
Copy link
Collaborator 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
Collaborator

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

@GuillaumeGomez
Copy link
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