From ead2594d72079c6ffa53bf7df95aaede314b2604 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Mon, 16 Nov 2026 13:03:05 +0800 Subject: [PATCH] chore(host): keep Host's JDK methods ahead of the tests module (#3669) Clippy's items_after_test_module failed ide-host with -D warnings. --- crates/ide-host/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/ide-host/src/lib.rs b/crates/ide-host/src/lib.rs index 03777fa93..11bc2d66d 100644 --- a/crates/ide-host/src/lib.rs +++ b/crates/ide-host/src/lib.rs @@ -532,6 +532,14 @@ impl Host { } } +impl Host { + /// Lists the JDKs added by hand (global Settings › SDKs) with the detected ones. + pub fn apply_added_jdks(&self) { + let homes = self.global_settings.effective().languages.java.added_jdks; + ide_sdk::java::set_added_jdks(homes.into_iter().map(PathBuf::from)); + } +} + #[cfg(test)] mod tests { use super::*; @@ -565,11 +573,3 @@ mod tests { host.close_project("main"); } } - -impl Host { - /// Lists the JDKs added by hand (global Settings › SDKs) with the detected ones. - pub fn apply_added_jdks(&self) { - let homes = self.global_settings.effective().languages.java.added_jdks; - ide_sdk::java::set_added_jdks(homes.into_iter().map(PathBuf::from)); - } -}