22 lines
521 B
Rust
22 lines
521 B
Rust
|
fn foo() {
|
||
|
EvaluateJSReply::NumberValue(
|
||
|
match FromJSValConvertible::from_jsval(cx, rval.handle(), ()) {
|
||
|
Ok(ConversionResult::Success(v)) => v,
|
||
|
_ => unreachable!(),
|
||
|
},
|
||
|
)
|
||
|
}
|
||
|
|
||
|
fn bar() {
|
||
|
{
|
||
|
{
|
||
|
EvaluateJSReply::NumberValue(
|
||
|
match FromJSValConvertible::from_jsval(cx, rval.handle(), ()) {
|
||
|
Ok(ConversionResult::Success(v)) => v,
|
||
|
_ => unreachable!(),
|
||
|
},
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
}
|