Add .rustfmt.toml file.

This commit is contained in:
Eduard Tolosa 2023-10-17 00:15:45 -05:00
parent cd2dc1afc6
commit 513ce14200

12
.rustfmt.toml Normal file
View file

@ -0,0 +1,12 @@
# How imports should be grouped into use statements. Imports will be merged or split to the configured level of granularity.
imports_granularity = "One"
# Unix or Windows line endings
newline_style = "Unix"
# Convert /* */ comments to // comments where possible
normalize_comments = true
# Convert #![doc] and #[doc] attributes to //! and /// doc comments.
normalize_doc_attributes = true
# Remove nested parens.
remove_nested_parens = true
# Reorder impl items. type and const are put first, then macros and methods.
reorder_impl_items = true