rust-vmm / rust-vmm-ci

Apache License 2.0
18 stars 33 forks source link

Check formatting of code examples in doc comments #92

Closed gsserge closed 2 years ago

gsserge commented 2 years ago

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

gsserge commented 2 years ago

rustfmt 1.4.36-stable included with the 1.52.1 toolchain seems to have support for the format_code_in_doc_comments option, so I think there's no need to use nightly.