mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Rustfmt has changed its default style :/
This commit is contained in:
parent
82fc6d9f49
commit
be69f9c3e6
207 changed files with 1200 additions and 1339 deletions
|
@ -47,14 +47,12 @@ pub fn handle_evaluate_js(global: &GlobalScope, eval: String, reply: IpcSender<E
|
|||
} else if rval.is_boolean() {
|
||||
EvaluateJSReply::BooleanValue(rval.to_boolean())
|
||||
} else if rval.is_double() || rval.is_int32() {
|
||||
EvaluateJSReply::NumberValue(match FromJSValConvertible::from_jsval(
|
||||
cx,
|
||||
rval.handle(),
|
||||
(),
|
||||
) {
|
||||
Ok(ConversionResult::Success(v)) => v,
|
||||
_ => unreachable!(),
|
||||
})
|
||||
EvaluateJSReply::NumberValue(
|
||||
match FromJSValConvertible::from_jsval(cx, rval.handle(), ()) {
|
||||
Ok(ConversionResult::Success(v)) => v,
|
||||
_ => unreachable!(),
|
||||
},
|
||||
)
|
||||
} else if rval.is_string() {
|
||||
EvaluateJSReply::StringValue(String::from(jsstring_to_str(cx, rval.to_string())))
|
||||
} else if rval.is_null() {
|
||||
|
@ -242,7 +240,7 @@ pub fn handle_modify_attribute(
|
|||
return warn!(
|
||||
"node id {} for pipeline id {} is not found",
|
||||
&node_id, &pipeline
|
||||
)
|
||||
);
|
||||
},
|
||||
Some(found_node) => found_node,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue