From 35f8fd34fc1120509315d86567c2e9f40effe9df Mon Sep 17 00:00:00 2001 From: Ryan Fowler Date: Wed, 27 May 2026 15:35:18 -0700 Subject: [PATCH] Remove unreachable metadata command branches --- src/app.rs | 10 ---------- tests/integration.rs | 4 ++++ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/app.rs b/src/app.rs index c06cdea..3d81f99 100644 --- a/src/app.rs +++ b/src/app.rs @@ -229,16 +229,6 @@ async fn run_inner(cli: &mut Cli) -> Result { } } - if cli.version { - println!("fetch {}", core::version()); - return Ok(0); - } - - if cli.buildinfo { - print_build_info(cli)?; - return Ok(0); - } - let direct_cli_sources = DirectCliSources::capture(cli); apply_from_curl(cli)?; diff --git a/tests/integration.rs b/tests/integration.rs index 9c7c646..3341be0 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -3786,6 +3786,10 @@ fn retry_status_rejects_stdin_body_replay() { } #[test] +#[cfg_attr( + windows, + ignore = "Windows can report a socket abort when the bounded retry drain abandons a large body" +)] fn retry_status_drain_is_bounded_for_large_error_body() { let server = PartialBodyReplayServer::start(503, "Service Unavailable", Vec::new(), "retried");