1
Fork 0

Load include_bytes! directly into an Lrc

This commit is contained in:
Ben Kimock 2023-08-27 18:16:12 -04:00
parent 734a0d0aa0
commit f26293dca4
3 changed files with 20 additions and 5 deletions

View file

@ -217,7 +217,7 @@ pub fn expand_include_bytes(
};
match cx.source_map().load_binary_file(&file) {
Ok(bytes) => {
let expr = cx.expr(sp, ast::ExprKind::IncludedBytes(bytes.into()));
let expr = cx.expr(sp, ast::ExprKind::IncludedBytes(bytes));
base::MacEager::expr(expr)
}
Err(e) => {