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.
This commit is contained in:
l0ng-ai
2026-11-16 13:03:05 +08:00
committed by GitHub
parent 2cb573d5ad
commit ead2594d72
+8 -8
View File
@@ -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));
}
}