Check formatting of code examples in doc comments

Add format_code_in_doc_comments=true to the cargo fmt
config options.

Fixes: https://github.com/rust-vmm/rust-vmm-ci/issues/58

Signed-off-by: Sergii Glushchenko <gsserge@amazon.com>
This commit is contained in:
Sergii Glushchenko
2021-10-06 12:16:56 +02:00
committed by Laura Loghin
parent 7f22582590
commit 68d4dbf85c

View File

@@ -18,7 +18,7 @@
},
{
"test_name": "style",
"command": "cargo fmt --all -- --check"
"command": "cargo fmt --all -- --check --config format_code_in_doc_comments=true"
},
{
"test_name": "unittests-gnu",