Skip to content

Commit

Permalink
Generate paths as raw string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Mar 26, 2024
1 parent edaf5f1 commit b8d1438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viper-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ fn main() {
// Write a file that imports the generated module by absolute path.
let import_src = vec![
"#[rustfmt::skip]".to_string(),
format!("#[path = \"{}\"]", generated_dir.join("mod.rs").display()),
format!("#[path = r\"{}\"]", generated_dir.join("mod.rs").display()),
"pub mod wrappers;".to_string(),
]
.join("\n");
Expand Down
2 changes: 1 addition & 1 deletion vir/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn main() {
// so that one could do `clippy --fix`...
"#[allow(clippy::uninlined_format_args)]".to_string(),
"#[rustfmt::skip]".to_string(),
format!("#[path = \"{}\"]", gen_dir.join("mod.rs").display()),
format!("#[path = r\"{}\"]", gen_dir.join("mod.rs").display()),
"mod gen;".to_string(),
]
.join("\n");
Expand Down

0 comments on commit b8d1438

Please sign in to comment.