Fix broken list for lints config
This commit is contained in:
parent
f7db8952e6
commit
712e8f4f48
@ -684,6 +684,11 @@ fn cleanup_docs(docs_collection: &Vec<String>) -> String {
|
|||||||
.find(|&s| !matches!(s, "" | "ignore" | "no_run" | "should_panic"))
|
.find(|&s| !matches!(s, "" | "ignore" | "no_run" | "should_panic"))
|
||||||
// if no language is present, fill in "rust"
|
// if no language is present, fill in "rust"
|
||||||
.unwrap_or("rust");
|
.unwrap_or("rust");
|
||||||
|
let len_diff = line.len() - line.trim_start().len();
|
||||||
|
if len_diff != 0 {
|
||||||
|
// We put back the indentation.
|
||||||
|
docs.push_str(&line[..len_diff]);
|
||||||
|
}
|
||||||
docs.push_str("```");
|
docs.push_str("```");
|
||||||
docs.push_str(lang);
|
docs.push_str(lang);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user