From dd3f8a7138d232eeda4260096b55ada7b6bd90e8 Mon Sep 17 00:00:00 2001 From: skylartaylor Date: Thu, 26 Nov 2026 12:13:44 +0100 Subject: [PATCH] nightly-tests: rustfmt the launcher fixture --- apps/gridcraft/src/main.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apps/gridcraft/src/main.rs b/apps/gridcraft/src/main.rs index d0c71fd2e..049f6b901 100644 --- a/apps/gridcraft/src/main.rs +++ b/apps/gridcraft/src/main.rs @@ -668,10 +668,8 @@ mod launch_separator_tests { /// The argv the Launcher starts a nightly with, extended by `tail`, as the start then reads it. fn launcher_argv(tail: &[&str]) -> Vec { - let mut argv: Vec = ["--launch-profile", "nightly-v1", "--profile-root", launcher_root(), "--"] - .iter() - .map(std::ffi::OsString::from) - .collect(); + let mut argv: Vec = + ["--launch-profile", "nightly-v1", "--profile-root", launcher_root(), "--"].iter().map(std::ffi::OsString::from).collect(); argv.extend(tail.iter().map(std::ffi::OsString::from)); launch_profile::parse(argv).unwrap().args.iter().map(|a| a.to_string_lossy().into_owned()).collect() } @@ -679,10 +677,8 @@ mod launch_separator_tests { #[test] fn the_other_platforms_root_spelling_is_refused_as_relative() { let foreign = if cfg!(windows) { "/nightly-data/profiles/gridcraft" } else { r"C:\NightlyData\profiles\gridcraft" }; - let argv: Vec = ["--launch-profile", "nightly-v1", "--profile-root", foreign, "--"] - .iter() - .map(std::ffi::OsString::from) - .collect(); + let argv: Vec = + ["--launch-profile", "nightly-v1", "--profile-root", foreign, "--"].iter().map(std::ffi::OsString::from).collect(); assert!(launch_profile::parse(argv).is_err(), "a root that is not absolute on this platform must be refused"); }