mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Make variable binding more consistent with rest of the file
https://reviewable.io/reviews/servo/servo/6174#-Jq48M5Vu-YnswI0jcvD
This commit is contained in:
parent
8e3f4bba85
commit
5793add4cd
1 changed files with 2 additions and 2 deletions
|
@ -196,8 +196,8 @@ impl Handler {
|
|||
const_chan.send(ConstellationMsg::WebDriverCommand(cmd_msg)).unwrap();
|
||||
match reciever.recv().unwrap() {
|
||||
Ok(value) => {
|
||||
let v_res = ValueResponse::new(value.map(|x| WebElement::new(x).to_json()).to_json());
|
||||
Ok(WebDriverResponse::Generic(v_res))
|
||||
let value_resp = value.map(|x| WebElement::new(x).to_json()).to_json();
|
||||
Ok(WebDriverResponse::Generic(ValueResponse::new(value_resp)))
|
||||
}
|
||||
Err(_) => Err(WebDriverError::new(ErrorStatus::InvalidSelector,
|
||||
"Invalid selector"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue