Comment that lint_configuration.md is machine generated

This commit is contained in:
Tyler Weaver 2023-01-14 11:10:40 -07:00
parent d950279a03
commit c0da8acb72
No known key found for this signature in database
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
<!--
This file is generated by `cargo collect-metadata`.
Please use that command to update the file and do not edit it by hand.
-->
## Lint Configuration Options ## Lint Configuration Options
| <div style="width:290px">Option</div> | Default Value | | <div style="width:290px">Option</div> | Default Value |
|--|--| |--|--|

View File

@ -239,7 +239,17 @@ impl Drop for MetadataCollector {
.create(true) .create(true)
.open(MARKDOWN_OUTPUT_FILE) .open(MARKDOWN_OUTPUT_FILE)
.unwrap(); .unwrap();
writeln!(file, "{}", self.get_markdown_docs(),).unwrap(); writeln!(
file,
"<!--
This file is generated by `cargo collect-metadata`.
Please use that command to update the file and do not edit it by hand.
-->
{}",
self.get_markdown_docs(),
)
.unwrap();
} }
} }