diff --git a/packages/cubejs-backend-native/src/node_export.rs b/packages/cubejs-backend-native/src/node_export.rs index 20ef7e3e8ad9f..0e2f9c7224bf8 100644 --- a/packages/cubejs-backend-native/src/node_export.rs +++ b/packages/cubejs-backend-native/src/node_export.rs @@ -526,7 +526,7 @@ fn get_cubestore_result(mut cx: FunctionContext) -> JsResult { for (i, row) in result.rows.iter().enumerate() { let js_row = cx.execute_scoped(|mut cx| { let js_row = JsObject::new(&mut cx); - for (key, value) in result.columns.iter().zip(row.into_iter()) { + for (key, value) in result.columns.iter().zip(row.iter()) { let js_key = cx.string(key); let js_value = cx.string(value); js_row.set(&mut cx, js_key, js_value)?;