mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
12 lines
211 B
Rust
12 lines
211 B
Rust
use std::path::{Path, PathBuf};
|
|
|
|
pub(crate) fn join_path<P, I>(iter: I) -> PathBuf
|
|
where
|
|
P: AsRef<Path>,
|
|
I: IntoIterator<Item = P>,
|
|
{
|
|
let mut path = PathBuf::new();
|
|
path.extend(iter);
|
|
path
|
|
}
|