paritytech / parity-scale-codec

Lightweight, efficient, binary serialization and deserialization codec
Apache License 2.0
243 stars 95 forks source link

Source code formatting #583

Closed kalaninja closed 4 months ago

kalaninja commented 4 months ago

Though rustfmt.toml was introduced in 0841cc48bc14d2573cb7a8de8b2d342db362ee62, the code wasn't formatted accordingly.

This PR formats the source code and adds a corresponding check to ci.

The formatting was done with cargo +nightly fmt --all to follow rustfmt.toml rules, so the check is implemented with cargo +nightly fmt --all -- --check