Skip to content

Commit

Permalink
Fix missing scenario, rule and feature headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanoz committed Aug 24, 2023
1 parent de25dfe commit a930976
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/writer/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ impl<Out: io::Write> Basic<Out> {
feature: &gherkin::Feature,
) -> io::Result<()> {
let out = format!("{}: {}", feature.keyword, feature.name);
self.lines_to_clear += self.styles.lines_count(&out);
self.output.write_line(&self.styles.ok(out))
}

Expand Down Expand Up @@ -327,7 +326,6 @@ impl<Out: io::Write> Basic<Out> {
rule.name,
indent = " ".repeat(self.indent)
);
self.lines_to_clear += self.styles.lines_count(&out);
self.indent += 2;
self.output.write_line(&self.styles.ok(out))
}
Expand Down Expand Up @@ -455,7 +453,6 @@ impl<Out: io::Write> Basic<Out> {
retries.current,
retries.left + retries.current,
);
self.lines_to_clear += self.styles.lines_count(&out);
self.output.write_line(&self.styles.retry(out))
} else {
let out = format!(
Expand All @@ -464,7 +461,6 @@ impl<Out: io::Write> Basic<Out> {
scenario.keyword,
scenario.name,
);
self.lines_to_clear += self.styles.lines_count(&out);
self.output.write_line(&self.styles.ok(out))
}
}
Expand Down

0 comments on commit a930976

Please sign in to comment.