Open kamuik16 opened 1 day ago
Curios to know the opinions of the maintainers here :)
Hi, there was one, introduced in #18, which was then removed in #137. No strong opinion, just wouldn't like something that changes the code style too much with lots of diffs. If it's mostly imports makes sense to me
Hi, there was one, introduced in #18, which was then removed in #137. No strong opinion, just wouldn't like something that changes the code style too much with lots of diffs. If it's mostly imports makes sense to me
yes, related to imports and formatting code in the docs which are in the ///
. But we'll have to use the nightly toolchain like cargo +nightly fmt
so if it makes sense to you, I can open a PR for it. We'll have to change cargo fmt check in the ci to use the nightly feature. wdyt?
Description
We can add a
rustfmt.toml
file to the repo and use some of the nightly features likeRead more about these configs in here.
Motivation
Highly improved code formatting and readability. Formatting imports. Formatting the code in doc as well. Example: reth - rustfmt.toml
Current Implementation
This:
will look like this:
This is just one of the example across repo.
Are you planning to do it yourself in a pull request ?
Yes