From 08c9748cbbffe2561cfa0c210785747d0569efbe Mon Sep 17 00:00:00 2001 From: Marius Karnauskas Date: Sun, 31 Oct 2021 19:32:52 +0200 Subject: [PATCH] error[E0507]: cannot move out of `*value.zval` which is behind a raw pointer --- src/zend/methods.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zend/methods.rs b/src/zend/methods.rs index ac33f11..83b3663 100644 --- a/src/zend/methods.rs +++ b/src/zend/methods.rs @@ -183,9 +183,9 @@ impl PhpParseParameters for [&mut Zval; 5] { fn add_zend_value_to_zval(value: ZendValue, zval: &mut Zval) { unsafe { - let zval_from_value = *value.zval; + let zval_from_value = &*value.zval; zval.value = zval_from_value.value; zval.type_info = zval_from_value.type_info; zval.u2 = zval_from_value.u2; } -} \ No newline at end of file +}