mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-24 00:10:45 +01:00
Take &Path in the import test helper
This commit is contained in:
1 parent
cfe837b86c
commit
ffe8587e54
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
||||
//! Importing baked map files at once: each lands in the texture set and mesh map its name names
|
||||
|
||||
use std::path::PathBuf;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use serde_json::{Value, json};
|
||||
use texturecraft_engine::core::BakedMap;
|
||||
@@ -23,7 +23,7 @@ fn bake_folder(test: &str, files: &[&str]) -> PathBuf {
|
||||
dir
|
||||
}
|
||||
|
||||
fn import(s: &mut Session, dir: &PathBuf, files: &[(&str, Option<&str>)]) -> Value {
|
||||
fn import(s: &mut Session, dir: &Path, files: &[(&str, Option<&str>)]) -> Value {
|
||||
let files: Vec<Value> = files
|
||||
.iter()
|
||||
.map(|(file, map)| {
|
||||
|
||||
Reference in new issue
Block a user