Issue 3223: repair for the failing wasm32 build
Removed `ref` modifier due to not being allowed when implicitly borrowing.
This commit is contained in:
@@ -129,8 +129,7 @@ impl WasmQueryState {
|
||||
let mut error = None;
|
||||
let mut to_drop = false;
|
||||
match &mut self.inner {
|
||||
Some(ref mut inner) => {
|
||||
inner.with_query_state_mut(|query_state| match query_state.next() {
|
||||
Some(mut inner) => inner.with_query_state_mut(|query_state| match query_state.next() {
|
||||
Some(Ok(leaf_answer)) => {
|
||||
js_sys::Reflect::set(&ret, &"value".into(), &leaf_answer.into()).unwrap();
|
||||
js_sys::Reflect::set(&ret, &"done".into(), &false.into()).unwrap();
|
||||
@@ -144,8 +143,7 @@ impl WasmQueryState {
|
||||
js_sys::Reflect::set(&ret, &"done".into(), &true.into()).unwrap();
|
||||
to_drop = true;
|
||||
}
|
||||
})
|
||||
}
|
||||
}),
|
||||
None => return Err(js_sys::Error::new("This query was already dropped").into()),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user