mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-21 00:36:33 +00:00
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:
committed by
Alex Crichton
parent
19acb5bb72
commit
64591ef403
@ -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()),
|
||||
));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user