chore: silence unused warning (#4817)

This commit is contained in:
Matthias Seitz
2023-09-27 12:20:20 +02:00
committed by GitHub
parent 4dbd8835e5
commit b994d159b4
4 changed files with 8 additions and 9 deletions

View File

@ -774,11 +774,11 @@ mod tests {
ctx.register_global_property("bigint", big_int, Attribute::all()).unwrap();
let obj = contract.clone().into_js_object(&mut ctx).unwrap();
let s = r#"({
let s = "({
call: function(contract) { return contract.getCaller(); },
value: function(contract) { return contract.getValue(); },
input: function(contract) { return contract.getInput(); }
})"#;
})";
let eval_obj = ctx.eval(Source::from_bytes(s.as_bytes())).unwrap();