diff options
author | Emil Gardström <emil.gardstrom@gmail.com> | 2022-02-25 21:38:31 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2022-03-15 03:58:40 +0100 |
commit | d90a41ad24a813dc701ff6ee9bcd8a0b0fcb9fe0 (patch) | |
tree | f3aa7c0da80f2b9598c956b4501e68450890ce27 /tests | |
parent | b387d2337dfd096ee1144fd88f8800581658a66a (diff) |
escape `\` in paths for tests modules
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expectations/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/expectations/build.rs b/tests/expectations/build.rs index a5904d96..e44bcc85 100644 --- a/tests/expectations/build.rs +++ b/tests/expectations/build.rs @@ -52,7 +52,7 @@ fn main() { #[path = "{}"] mod {}; "###, - path.display(), + path.display().to_string().replace('\\', "\\\\"), module_name, )); } |