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

Don't capture std::fmt::Error in rinja::Error #17

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

Kijewski
Copy link
Collaborator

std::fmt::Error does not know why it failed, only that it failed, as it has a single value. This PR removes the captured value, to make the code a bit more dense.

Kijewski added 2 commits June 19, 2024 00:05
`std::fmt::Error` does not know why it failed, only that it failed, as
it has a single value. This PR removes the captured value, to make the
code a bit more dense.
@GuillaumeGomez
Copy link
Contributor

I love such simplifications. :)

@GuillaumeGomez GuillaumeGomez merged commit 40a307a into rinja-rs:master Jun 18, 2024
16 checks passed
@Kijewski Kijewski deleted the pr-no-fmt-error branch June 18, 2024 22:21
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