Skip to content

Commit bedef83

Browse files
authored
Do not hard-code path separator
1 parent a75b75d commit bedef83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

glib-build-tools/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ use std::{env, path::Path, process::Command};
1717
/// ```
1818
pub fn compile_resources<P: AsRef<Path>>(source_dir: P, gresource: &str, target: &str) {
1919
let out_dir = env::var("OUT_DIR").unwrap();
20+
let out_dir = Path::new(&out_dir);
2021

2122
let status = Command::new("glib-compile-resources")
2223
.arg("--sourcedir")
2324
.arg(source_dir.as_ref())
2425
.arg("--target")
25-
.arg(&format!("{out_dir}/{target}"))
26+
.arg(out_dir.join(target))
2627
.arg(gresource)
2728
.status()
2829
.unwrap();

0 commit comments

Comments
 (0)