mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Make Game::set_additional_data_paths() take Vec<PathBuf>, not &[&Path]
This commit is contained in:
+2
-1
@@ -104,7 +104,8 @@ impl Game {
|
||||
|
||||
#[napi]
|
||||
pub fn set_additional_data_paths(&mut self, paths: Vec<String>) -> Result<(), VerboseError> {
|
||||
self.0.set_additional_data_paths(&as_paths(&paths))?;
|
||||
let paths: Vec<_> = paths.into_iter().map(Into::into).collect();
|
||||
self.0.set_additional_data_paths(paths)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user