Skip to content

Conversation

@svix-mman
Copy link
Contributor

@svix-mman svix-mman commented Nov 27, 2025

Purely a formatting change.

I added these 3 lines to the rustfmt config in the rust sdk and in the cli.

fn_params_layout = "Vertical"
struct_lit_width = 0
imports_layout = "Vertical"
fn_call_width = 0

This makes all function calls, struct literal instantiation, imports, function prams to be formatted vertically. It's a little uglier, but I don't care so much about generated code 🤷

Part of my long term goal to not need rustfmt at all, will minimize the diff in an upcoming PR.

@svix-mman svix-mman requested a review from a team as a code owner November 27, 2025 23:34
@svix-mman svix-mman force-pushed the mendy/change-rustfmt-foramtting branch from f2f1046 to 4a30e3f Compare November 27, 2025 23:41
@svix-mman svix-mman marked this pull request as draft November 28, 2025 00:12
@svix-mman
Copy link
Contributor Author

Not sure if I really want to do this, maybe I can generate nicely formatted code by hand 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants