Js sys use &str arguments (#555)

* js-sys: imports should take &str parameters instead of &JsString

* js-sys: Imports should take Option<&str> instead of Option<String>
This commit is contained in:
Nick Fitzgerald
2018-07-25 16:50:30 -07:00
committed by Alex Crichton
parent 19acb5bb72
commit 64591ef403
7 changed files with 83 additions and 83 deletions

View File

@ -55,7 +55,7 @@ pub fn run() {
.get_element_by_id("current-time")
.set_inner_html(&String::from(
Date::new(&JsValue::undefined())
.to_locale_string(&"en-GB".into(), &JsValue::undefined()),
.to_locale_string("en-GB", &JsValue::undefined()),
));
}