Skip to content

Commit

Permalink
Blind attempt to fix #13626
Browse files Browse the repository at this point in the history
The error message was:

```
error: unknown character escape: d
  --> C:\projects\servo\target\debug\build\style-9b556a6c7bb4f044\out/properties.rs:44:55
   |
44 | #[path="C:/projects/servo/components/style/properties\declaration_block.rs"]
   |
```

Use `repr()` to get a Python string literal (whose character escaping
is compatible enough with Rust’s) and `[1:-1]` to remove the single quotes.
  • Loading branch information
SimonSapin committed Oct 7, 2016
1 parent e23959a commit ea97e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/properties/properties.mako.rs
Expand Up @@ -44,7 +44,7 @@ pub use self::declaration_block::*;
import os.path
%>

#[path="${os.path.join(os.path.dirname(__file__), 'declaration_block.rs')}"]
#[path="${repr(os.path.join(os.path.dirname(__file__), 'declaration_block.rs'))[1:-1]}"]
pub mod declaration_block;

pub mod longhands {
Expand Down

0 comments on commit ea97e98

Please sign in to comment.