Load include_bytes! directly into an Lrc
This commit is contained in:
parent
734a0d0aa0
commit
f26293dca4
3 changed files with 20 additions and 5 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue