Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Oct 14, 2022
1 parent 783bc8f commit f40b3da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod cli {

#[test]
fn show_help() {
let output = run_cargo_mdcat(&["--help"]);
let output = run_cargo_mdcat(["--help"]);
let stdout = std::str::from_utf8(&output.stdout).unwrap();
assert!(
output.status.success(),
Expand All @@ -40,7 +40,7 @@ mod cli {

#[test]
fn file_list_fail_late() {
let output = run_cargo_mdcat(&["does-not-exist", "sample/common-mark.md"]);
let output = run_cargo_mdcat(["does-not-exist", "sample/common-mark.md"]);
let stderr = std::str::from_utf8(&output.stderr).unwrap();
let stdout = std::str::from_utf8(&output.stdout).unwrap();
assert!(!output.status.success());
Expand All @@ -55,7 +55,7 @@ mod cli {

#[test]
fn file_list_fail_fast() {
let output = run_cargo_mdcat(&["--fail", "does-not-exist", "sample/common-mark.md"]);
let output = run_cargo_mdcat(["--fail", "does-not-exist", "sample/common-mark.md"]);
let stderr = std::str::from_utf8(&output.stderr).unwrap();
assert!(!output.status.success());
// We failed to read the first file and exited early, so nothing was printed at all
Expand Down
4 changes: 2 additions & 2 deletions tests/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fn ansi_only(markdown_file: &str) {
test_with_golden_file(
markdown_file,
"tests/render/golden/ansi-only",
&*SETTINGS_ANSI_ONLY,
&SETTINGS_ANSI_ONLY,
)
}

Expand All @@ -158,6 +158,6 @@ fn iterm2(markdown_file: &str) {
test_with_golden_file(
markdown_file,
"tests/render/golden/iterm2",
&*SETTINGS_ITERM2,
&SETTINGS_ITERM2,
)
}

0 comments on commit f40b3da

Please sign in to comment.