From 6540f38827d9e44a392f1da9f324d6cf98c48d7f Mon Sep 17 00:00:00 2001 From: Keith Hall Date: Sat, 27 Sep 2025 23:54:52 +0300 Subject: [PATCH] cargo fmt --- src/bin/bat/app.rs | 5 ++++- tests/integration_tests.rs | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/bat/app.rs b/src/bin/bat/app.rs index c784eabf..a8e1e0db 100644 --- a/src/bin/bat/app.rs +++ b/src/bin/bat/app.rs @@ -60,7 +60,10 @@ impl App { // Check if we should skip config file processing for special arguments // that don't require full application setup (help, version, diagnostic) let should_skip_config = wild::args_os().any(|arg| { - matches!(arg.to_str(), Some("-h" | "--help" | "-V" | "--version" | "--diagnostic" | "--diagnostics")) + matches!( + arg.to_str(), + Some("-h" | "--help" | "-V" | "--version" | "--diagnostic" | "--diagnostics") + ) }); let args = if wild::args_os().nth(1) == Some("cache".into()) { diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 6b9d7263..75021eb5 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1300,7 +1300,9 @@ fn help_works_with_invalid_config() { .arg("--help") .assert() .success() - .stdout(predicate::str::contains("A cat(1) clone with syntax highlighting")); + .stdout(predicate::str::contains( + "A cat(1) clone with syntax highlighting", + )); // -h should also work bat_with_config()