diff --git a/src/prelink.rs b/src/prelink.rs index b10a2d3..4a7b8a2 100644 --- a/src/prelink.rs +++ b/src/prelink.rs @@ -18,6 +18,9 @@ use crate::{ComponentizePyConfig, ConfigContext, Library, RawComponentizePyConfi static NATIVE_EXTENSION_SUFFIX: &str = ".cpython-312-wasm32-wasi.so"; +type ConfigsMatchedWorlds<'a> = + IndexMap, Option<&'a str>)>; + pub fn embedded_python_standard_library() -> Result { // Untar the embedded copy of the Python standard library into a temporary directory let stdlib = tempfile::tempdir()?; @@ -98,13 +101,7 @@ pub fn search_for_libraries_and_configs<'a>( python_path: &'a Vec<&'a str>, module_worlds: &'a [(&'a str, &'a str)], world: Option<&'a str>, -) -> Result< - ( - IndexMap, Option<&'a str>)>, - Vec, - ), - anyhow::Error, -> { +) -> Result<(ConfigsMatchedWorlds<'a>, Vec), anyhow::Error> { let mut raw_configs: Vec> = Vec::new(); let mut library_path: Vec<(&str, Vec)> = Vec::with_capacity(python_path.len());