Removed rustfmt_skip
guards from all files.
#71
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes all
#![cfg_attr(rustfmt, rustfmt_skip)]
from files so that files are automatically formatted by IDEs and usingcargo fmt
when working on this crate.It might also be worth considering adding a github CI action to make sure the crate is fully formatted, this can be done with
cargo fmt --verbose -- --check
.The reason for this PR is to make it easier for people to contribute without worrying about formatting. Recently I created a local branch to make a PR, but since I use hard tabs, I had to reformat my code manually every few lines, which became annoying quickly.
I believe it is standard for rust projects to use
rustfmt
to format their code. This can also be customized with arustfmt.toml
file if you wish to enforce a specific format.It is also possible to put a
#[rustfmt::skip]
attribute on functions / blocks that shouldn't be formatted for some reason (such as the full ascii table inAsciiChar::new
) to manually avoid this.