Skip to content

Comments

Fix formatting of bindgenned files by piping through prettyplease.#2020

Closed
thomcc wants to merge 1 commit intopgcentralfoundation:developfrom
thomcc:thomcc/fix-fmt
Closed

Fix formatting of bindgenned files by piping through prettyplease.#2020
thomcc wants to merge 1 commit intopgcentralfoundation:developfrom
thomcc:thomcc/fix-fmt

Conversation

@thomcc
Copy link
Contributor

@thomcc thomcc commented Mar 28, 2025

Currently, some bindgenned files (the pg17.rs in my work codebase) end up too big for rustfmt to handle, so it just gives up and spits out the input directly. The tool designed for this purpose is the prettyplease crate, which produces semi-formatted output (not identical to rustfmt), that rustfmt can take as input.

@eeeebbbbrrrr
Copy link
Contributor

@thomcc I believe that #2002 fixes this properly.

@thomcc
Copy link
Contributor Author

thomcc commented Mar 28, 2025

Ah, alright. I'll assume it does.

@thomcc thomcc closed this Mar 28, 2025
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