Skip to content

Instantly share code, notes, and snippets.

@nestordemeure
Last active October 15, 2021 05:25
Show Gist options
  • Save nestordemeure/1ad97fed68abe46f85faebd40df4c1f4 to your computer and use it in GitHub Desktop.
Save nestordemeure/1ad97fed68abe46f85faebd40df4c1f4 to your computer and use it in GitHub Desktop.
my rustfmt
# Rust format configuration file
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md
indent_style = "Visual"
control_brace_style = "AlwaysNextLine"
use_small_heuristics = "Max"
brace_style = "AlwaysNextLine"
where_single_line = true
imports_indent = "Visual"
trailing_comma = "Never"
overflow_delimited_expr = true
max_width = 110
reorder_modules = false
reorder_imports = false
# note that this file uses some options that are only available on `nightly`
# when developing on `stable`, you can still run it with `cargo +nightly fmt`
# or with some IDE trickery such as:
# https://github.com/rust-analyzer/rust-analyzer/issues/3627#issuecomment-612021748
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment