This commit is contained in:
n4n5
2025-11-09 17:15:36 -07:00
parent 0f10e216cf
commit ce44b459df
2 changed files with 5 additions and 12 deletions
+3 -9
View File
@@ -291,13 +291,7 @@ fn main() -> io::Result<()> {
}
println!("Writing to utils");
let hashsum_cmd = utils
.iter()
.find(|n| *n.0 == "hashsum")
.unwrap()
.clone()
.1
.1;
let hashsum_cmd = (*utils.iter().find(|n| *n.0 == "hashsum").unwrap()).1.1;
for (&name, (_, command)) in utils {
let (utils_name, usage_name, command) = match name {
"[" => {
@@ -428,14 +422,14 @@ impl MDWriter<'_, '_> {
};
for element in elements {
if let TextElement { ref value } = element {
result.push_str(&value);
result.push_str(value);
}
if let Placeable {
expression:
Expression::Inline(InlineExpression::StringLiteral { ref value }),
} = element
{
result.push_str(&value);
result.push_str(value);
}
}
return Some(result);
+2 -3
View File
@@ -91,8 +91,7 @@ test
```
",
),
"{} does not contains the required text",
correct_path
"{correct_path} does not contains the required text"
);
}
@@ -116,7 +115,7 @@ fn uudoc_check_sums() {
let output_path = pages
.iter()
.find(|one_line| one_line.contains(one_sum))
.expect(&format!("{one_sum} was not generated in {pages:?}"));
.unwrap();
let (correct_path, content) = get_doc_file_from_output(output_path);
let formatted = format!("```\n{one_sum} [OPTIONS]... [FILE]...\n```");
assert!(