mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: remove unneeded and now broken bazel workaround
This commit is contained in:
@@ -150,10 +150,7 @@ fn write_schema(
|
|||||||
.map(|node| node_src_to_schema_class(node, &super_types)),
|
.map(|node| node_src_to_schema_class(node, &super_types)),
|
||||||
);
|
);
|
||||||
// the concat dance is currently required by bazel
|
// the concat dance is currently required by bazel
|
||||||
let template = mustache::compile_str(include_str!(concat!(
|
let template = mustache::compile_str(include_str!("templates/schema.mustache"))?;
|
||||||
env!("CARGO_MANIFEST_DIR"),
|
|
||||||
"/src/templates/schema.mustache"
|
|
||||||
)))?;
|
|
||||||
let res = template.render_to_string(&schema)?;
|
let res = template.render_to_string(&schema)?;
|
||||||
Ok(fix_blank_lines(&res))
|
Ok(fix_blank_lines(&res))
|
||||||
}
|
}
|
||||||
@@ -558,10 +555,7 @@ fn write_extractor(grammar: &AstSrc) -> mustache::Result<String> {
|
|||||||
nodes: grammar.nodes.iter().map(node_to_extractor_info).collect(),
|
nodes: grammar.nodes.iter().map(node_to_extractor_info).collect(),
|
||||||
};
|
};
|
||||||
// the concat dance is currently required by bazel
|
// the concat dance is currently required by bazel
|
||||||
let template = mustache::compile_str(include_str!(concat!(
|
let template = mustache::compile_str(include_str!("templates/extractor.mustache"))?;
|
||||||
env!("CARGO_MANIFEST_DIR"),
|
|
||||||
"/src/templates/extractor.mustache"
|
|
||||||
)))?;
|
|
||||||
let res = template.render_to_string(&extractor_info)?;
|
let res = template.render_to_string(&extractor_info)?;
|
||||||
Ok(fix_blank_lines(&res))
|
Ok(fix_blank_lines(&res))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user