Skip to content

Conversation

@ajakubowicz-canva
Copy link
Collaborator

Context

Generated code is formatted with rustfmt. However, by default rustfmt uses the 2015 edition. This PR adds rustfmt.toml such that generating the code and cargo fmt match.

I also snuck in a fix to an expect message.

Test plan

When I run cargo run --bin fearless_simd_gen I now get the same result as cargo fmt. Sorry for not catching this in the initial PR. I could get around it by using the generator then running cargo fmt 🤦

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file contains an improvement to an expect message that would otherwise literally panic with the message: "error parsing {name}". Now it provides the name.

@ajakubowicz-canva ajakubowicz-canva merged commit 27351ab into main Jun 20, 2025
6 checks passed
@ajakubowicz-canva ajakubowicz-canva deleted the ajakubowicz-fix-generator-and-fmt branch June 20, 2025 21:50
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.

3 participants