-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
5fc717a
to
58b24c1
Compare
Copied from substrate.
58b24c1
to
66bc8f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether we really need those nightly features, but since the PR has been merged already, let's keep it consistent.
One thing we might add is a couple more options as suggested in paritytech/substrate#8982 (comment), also maybe edition = "2018"
?
It has some odd side effects converting // to /* */ instead of the other way round.
The reason to revert the normalization of comments is rust-lang/rustfmt#4909 |
Edition is auto detected iff used via Priority was consistency + keeping the changeset small~ish, so I'd rather not meddle too much with the config unless there are specific issues (as stated above i.e.). |
bot merge |
Trying merge. |
Let's make sure the changes here are propagated back to substrate. |
Left a comment on the merged PR and will reach out to @expenses |
* master: Update secp256k1 and remove unrequired usage (#3502) Bump libc from 0.2.91 to 0.2.98 (#3496) Bump slotmap from 1.0.2 to 1.0.5 (#3495) Gossip rebroadcast rate limiter (#3494) dependabot: ignore another git dep (#3493) add rustfmt toml (#3491) Disputes runtime (#2947) Bump async-process from 1.0.1 to 1.1.0 (#3122) remove the kubernetes helm chart (#3483) added pallet-proxy in rococo feature dependencies (#3486) Update BEEFY+MMR integration. (#3480) more verbose asserts (#3476) ci: use srtool-actions to build runtimes (#3423) overseer gen minor chore fixes (#3479)
Copies the substrate
rustfmt.toml
to polkadot, to be used withcargo +nightly fmt
orrustfmt +nightly file.rs
.This PR does NOT apply the format, it only provides it to eventually be applied subsystem by subsystem.
Ref paritytech/substrate#8982