File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,7 @@ fn write_schema(
150
150
. map ( |node| node_src_to_schema_class ( node, & super_types) ) ,
151
151
) ;
152
152
// the concat dance is currently required by bazel
153
- let template = mustache:: compile_str ( include_str ! ( concat!(
154
- env!( "CARGO_MANIFEST_DIR" ) ,
155
- "/src/templates/schema.mustache"
156
- ) ) ) ?;
153
+ let template = mustache:: compile_str ( include_str ! ( "templates/schema.mustache" ) ) ?;
157
154
let res = template. render_to_string ( & schema) ?;
158
155
Ok ( fix_blank_lines ( & res) )
159
156
}
@@ -558,10 +555,7 @@ fn write_extractor(grammar: &AstSrc) -> mustache::Result<String> {
558
555
nodes : grammar. nodes . iter ( ) . map ( node_to_extractor_info) . collect ( ) ,
559
556
} ;
560
557
// the concat dance is currently required by bazel
561
- let template = mustache:: compile_str ( include_str ! ( concat!(
562
- env!( "CARGO_MANIFEST_DIR" ) ,
563
- "/src/templates/extractor.mustache"
564
- ) ) ) ?;
558
+ let template = mustache:: compile_str ( include_str ! ( "templates/extractor.mustache" ) ) ?;
565
559
let res = template. render_to_string ( & extractor_info) ?;
566
560
Ok ( fix_blank_lines ( & res) )
567
561
}
You can’t perform that action at this time.
0 commit comments