Skip to content

Commit 977f1cd

Browse files
authored
Merge pull request #214 from liigo/raw-path
use raw string file path, fix build script errors on windows
2 parents fd5dcf9 + c5f87e7 commit 977f1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn main() {
4040
.filter(|e| !e.path_is_symlink() && e.file_type().is_file())
4141
{
4242
let relative = entry.path().strip_prefix(&from).unwrap();
43-
write!(out_file, "\n\"{}\" => Ok(include_bytes!(\"{}\")),", relative.display(), entry.path().display()).unwrap();
43+
write!(out_file, "\nr#\"{}\"# => Ok(include_bytes!(r#\"{}\"#)),", relative.display(), entry.path().display()).unwrap();
4444
}
4545

4646
out_file.write(SUFFIX.as_bytes()).unwrap();

0 commit comments

Comments
 (0)