Updated and fixed Rust format config

This commit is contained in:
Lucien Cartier-Tilet 2020-02-06 23:30:35 +01:00
parent 75ea831454
commit e6e8d86e45
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -193,7 +193,17 @@
Use tab characters for indentation, spaces for alignment. Use tab characters for indentation, spaces for alignment.
#+BEGIN_SRC toml #+BEGIN_SRC toml
hard_tabs = true hard_tabs = false
#+END_SRC
Number of spaces per tab.
#+BEGIN_SRC toml
tab_spaces = 4
#+END_SRC
I want newlines to always be Unix style.
#+BEGIN_SRC toml
newline_style = "Unix"
#+END_SRC #+END_SRC
Maximum width of each line Maximum width of each line
@ -206,11 +216,6 @@
merge_imports = true merge_imports = true
#+END_SRC #+END_SRC
My newline style will always be Unix.
#+BEGIN_SRC toml
newline_style = Unix
#+END_SRC
Convert =/* */= comments to =//= comments where possible. Convert =/* */= comments to =//= comments where possible.
#+BEGIN_SRC toml #+BEGIN_SRC toml
normalize_comments = true normalize_comments = true
@ -243,11 +248,6 @@
struct_field_align_threshold = 20 struct_field_align_threshold = 20
#+END_SRC #+END_SRC
Number of spaces per tab.
#+BEGIN_SRC toml
tab_spaces = 2
#+END_SRC
Break comments to fit on the line. Break comments to fit on the line.
#+BEGIN_SRC toml #+BEGIN_SRC toml
wrap_comments = true wrap_comments = true