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
| <div style="width:290px">Option</div> | Default Value |
|--|--|

View file

@ -239,7 +239,17 @@ impl Drop for MetadataCollector {
.create(true)
.open(MARKDOWN_OUTPUT_FILE)
.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();
}
}