fix js_into: self is already a reference
This commit is contained in:
parent
2ccfc19a6c
commit
40eec7d38d
@ -37,7 +37,7 @@ pub trait DeserializeJS {
|
||||
|
||||
impl DeserializeJS for JsValue {
|
||||
fn js_into<'a, T: Deserialize<'a>>(&'a self) -> ScriptResult<T> {
|
||||
let rc = from_js(self.context(), &self)?;
|
||||
let rc = from_js(self.context(), self)?;
|
||||
|
||||
Ok(rc)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user