forked from firecracker-microvm/firecracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comply with TOML string requirements
Adds string handling back into pre-commit to drop quotes for rustfmt --config option to be able to use the string values as unquoted. This change additionally drops the license-template-path formatting parameter as it is no longer supported by the rust toolchain. See github discussion: rust-lang/rustfmt#3352 Signed-off-by: Matthew Schlebusch <[email protected]>
- Loading branch information
1 parent
e81013c
commit 166b6e9
Showing
2 changed files
with
15 additions
and
3 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
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,9 +1,12 @@ | ||
# This file can be used as a whole TOML file via rustfmt's --config-path option | ||
# The individual key-pairs are also used by the pre-commit script | ||
# via the rustfmt --config option. | ||
|
||
comment_width=100 | ||
wrap_comments=true | ||
format_code_in_doc_comments=true | ||
format_strings=true | ||
license_template_path=./tests/license.txt | ||
imports_granularity=Module | ||
imports_granularity="Module" | ||
normalize_comments=true | ||
normalize_doc_attributes=true | ||
group_imports=StdExternalCrate | ||
group_imports="StdExternalCrate" |