Skip to content

Commit 1100bd5

Browse files
committed
lint
1 parent d9f54c1 commit 1100bd5

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

tpchgen-cli/bin/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,11 @@ impl Cli {
367367
impl TblArgs {
368368
async fn run(self) -> io::Result<()> {
369369
configure_logging(self.common.verbose, self.common.quiet);
370-
self.common.builder(OutputFormat::Tbl).build().generate().await
370+
self.common
371+
.builder(OutputFormat::Tbl)
372+
.build()
373+
.generate()
374+
.await
371375
}
372376
}
373377

tpchgen-cli/tests/cli_integration.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,7 @@ async fn test_format_parquet_warns_about_subcommand() {
719719
.arg(output_dir.path())
720720
.assert()
721721
.success()
722-
.stderr(predicates::str::contains(
723-
"will be removed in v4.0.0",
724-
));
722+
.stderr(predicates::str::contains("will be removed in v4.0.0"));
725723
}
726724

727725
/// Test that using --format together with a subcommand errors
@@ -832,9 +830,7 @@ async fn test_format_csv_warns_about_subcommand() {
832830
.arg(output_dir.path())
833831
.assert()
834832
.success()
835-
.stderr(predicates::str::contains(
836-
"will be removed in v4.0.0",
837-
));
833+
.stderr(predicates::str::contains("will be removed in v4.0.0"));
838834
}
839835

840836
/// Test that --format=tbl emits a deprecation warning
@@ -852,7 +848,5 @@ async fn test_format_tbl_warns_about_subcommand() {
852848
.arg(output_dir.path())
853849
.assert()
854850
.success()
855-
.stderr(predicates::str::contains(
856-
"will be removed in v4.0.0",
857-
));
851+
.stderr(predicates::str::contains("will be removed in v4.0.0"));
858852
}

0 commit comments

Comments
 (0)