Commit 80db40ba authored by Miguel Ojeda's avatar Miguel Ojeda
Browse files

rust: add `.rustfmt.toml`



This is the configuration file for the `rustfmt` tool.

`rustfmt` is a tool for formatting Rust code according to style guidelines.
It is very commonly used across Rust projects.

The default configuration options are used.

Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Co-developed-by: default avatarAlex Gaynor <alex.gaynor@gmail.com>
Signed-off-by: default avatarAlex Gaynor <alex.gaynor@gmail.com>
Co-developed-by: default avatarWedson Almeida Filho <wedsonaf@google.com>
Signed-off-by: default avatarWedson Almeida Filho <wedsonaf@google.com>
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent e4b69cb9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -97,6 +97,7 @@ modules.order
!.gitattributes
!.gitattributes
!.gitignore
!.gitignore
!.mailmap
!.mailmap
!.rustfmt.toml


#
#
# Generated include files
# Generated include files

.rustfmt.toml

0 → 100644
+12 −0
Original line number Original line Diff line number Diff line
edition = "2021"
newline_style = "Unix"

# Unstable options that help catching some mistakes in formatting and that we may want to enable
# when they become stable.
#
# They are kept here since they are useful to run from time to time.
#format_code_in_doc_comments = true
#reorder_impl_items = true
#comment_width = 100
#wrap_comments = true
#normalize_comments = true