/// Find the path to the `plugins.xml` file in the library search paths.
Find the path to the `plugins.xml` file in the library search paths.
Find the path to the ` plugins . xml ` file in the library search paths .
fn find_plugins_xml_path(library_search_paths: &[PathBuf]) -> Option<PathBuf> {
    for search_path in library_search_paths {
        let plugin_xml_path = search_path.join("plugins.xml");
        if plugin_xml_path.is_file() {
            return Some(search_path.clone());
        }
    }
    return None;
}
fn find_plugins_xml_path ( library_search_paths : & [ PathBuf ] ) -> Option < PathBuf > { for search_path in library_search_paths { let plugin_xml_path = search_path . join ( " " ) ; if plugin_xml_path . is_file ( ) { return Some ( search_path . clone ( ) ) ; } } return None ; }
Find the path to the `plugins.xml` file in the library search paths.
Find the path to the ` plugins . xml ` file in the library search paths .
library_search_paths
&[PathBuf]