From 68d4dbf85c2ef54a440afa635d2f0db8635dcfb7 Mon Sep 17 00:00:00 2001 From: Sergii Glushchenko Date: Wed, 6 Oct 2021 12:16:56 +0200 Subject: [PATCH] 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 --- .buildkite/test_description.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/test_description.json b/.buildkite/test_description.json index af49fb5..bf85a47 100644 --- a/.buildkite/test_description.json +++ b/.buildkite/test_description.json @@ -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",