From 0ff8dec366c29928e99314311c7e651eb79f8dcd Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Tue, 10 Sep 2024 22:33:24 +0200 Subject: [PATCH] Cleanup (unused function; formatting) GitOrigin-RevId: 5d2afc92c199f066b2b6891c19eac9ba8e98d4f3 --- native/XPlatLauncher/build.rs | 2 +- native/XPlatLauncher/tests/remote_dev_tests.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/native/XPlatLauncher/build.rs b/native/XPlatLauncher/build.rs index 140f136e2eaa..b0ef5ea66953 100644 --- a/native/XPlatLauncher/build.rs +++ b/native/XPlatLauncher/build.rs @@ -95,7 +95,7 @@ pub fn download_cef(version: &str, platform: &str, working_dir: &Path) -> Result #[cfg(target_os = "windows")] fn download_to_file(client: &Client, src: &str, dest: &Path) -> Result<()> { - fs_remove(dest)?; + fs_remove(dest)?; trace!("Downloading {src} to {dest:?}"); let mut response = client.get(src).send()?.error_for_status()?; diff --git a/native/XPlatLauncher/tests/remote_dev_tests.rs b/native/XPlatLauncher/tests/remote_dev_tests.rs index ac1c0274455a..4c6ba7f7a012 100644 --- a/native/XPlatLauncher/tests/remote_dev_tests.rs +++ b/native/XPlatLauncher/tests/remote_dev_tests.rs @@ -144,6 +144,7 @@ mod tests { check_env_variable(&test, &env, "INTELLIJ_ORIGINAL_ENV_FONTCONFIG_PATH", "/some/existing/path".to_string()); } + #[cfg(target_os = "linux")] fn check_env_variable(test: &TestEnvironment, env: &HashMap<&str, &str>, variable_name: &str, expected_value: String) { let remote_dev_command = &["printEnvVar", variable_name]; let launch_result = run_launcher_ext(&test, LauncherRunSpec::remote_dev().with_env(env).with_args(remote_dev_command));