Skip to content

Commit dea7afd

Browse files
committed
lint: remove unneeded trailing line fix
1 parent 4d94254 commit dea7afd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/lint/test_runner/src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,6 @@ fn lint_markdown() -> LintResult {
420420
Ok(output) if output.status.success() => Ok(()),
421421
Ok(output) => {
422422
let stderr = String::from_utf8_lossy(&output.stderr);
423-
let filtered_stderr: String = stderr // Filter out this annoying trailing line
424-
.lines()
425-
.filter(|&line| line != "The following links could not be resolved:")
426-
.collect::<Vec<&str>>()
427-
.join("\n");
428423
Err(format!(
429424
r#"
430425
One or more markdown links are broken.
@@ -434,7 +429,7 @@ Relative links are preferred (but not required) as jumping to file works nativel
434429
Markdown link errors found:
435430
{}
436431
"#,
437-
filtered_stderr
432+
stderr
438433
))
439434
}
440435
Err(e) if e.kind() == ErrorKind::NotFound => {

0 commit comments

Comments
 (0)