From 3a443b7ffd51f02dff8504c16a4c3202752d1ee5 Mon Sep 17 00:00:00 2001 From: Ulrich Hornung Date: Sun, 14 Jan 2024 13:51:33 +0100 Subject: [PATCH] cargo fmt --- tests/by-util/test_env.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tests/by-util/test_env.rs b/tests/by-util/test_env.rs index eea6e35db43..e3f8e4c5bd7 100644 --- a/tests/by-util/test_env.rs +++ b/tests/by-util/test_env.rs @@ -249,10 +249,14 @@ fn test_fail_change_directory() { } fn modify_newlines_according_platform(input: &str) -> String { - #[cfg(target_os="windows")] - { input.replace("\n", "\r\n") } - #[cfg(not(target_os="windows"))] - { input.into() } + #[cfg(target_os = "windows")] + { + input.replace("\n", "\r\n") + } + #[cfg(not(target_os = "windows"))] + { + input.into() + } } #[test] @@ -288,7 +292,10 @@ fn test_split_string_into_args_s_escaping_challenge() { .args(&[r#"-S echo "hello \"great\" world""#]) .succeeds() .stdout_move_str(); - assert_eq!(out, modify_newlines_according_platform("hello \"great\" world\n")); + assert_eq!( + out, + modify_newlines_according_platform("hello \"great\" world\n") + ); } #[test]