-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align
rustfmt.toml
with rust-lightning
Now that `rust-lightning` has added `rustfmt` support, we make sure our coding style is aligned.
- Loading branch information
Showing
13 changed files
with
366 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
hard_tabs = true # use tab characters for indentation, spaces for alignment | ||
use_field_init_shorthand = true | ||
max_width = 120 | ||
use_small_heuristics = "Max" | ||
chain_width = 80 | ||
fn_params_layout = "Compressed" | ||
hard_tabs = true | ||
use_field_init_shorthand = true | ||
max_width = 100 | ||
match_block_trailing_comma = true | ||
# UNSTABLE: format_code_in_doc_comments = true | ||
# UNSTABLE: overflow_delimited_expr = true | ||
# UNSTABLE: comment_width = 100 | ||
# UNSTABLE: format_macro_matchers = true | ||
# UNSTABLE: format_strings = true | ||
# UNSTABLE: group_imports = "StdExternalCrate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.