Currently raw pointers to Apache2 objects are being cast to references by doing this:
&mut unsafe { *record_ptr }
This however is incorrect, as de-referencing the pointer actually creates a temporary object and a reference to the temporary is returned. The correct way to cast is like this:
unsafe { record_ptr.as_mut().unwrap() }
This might be the cause of issue #19.
Currently raw pointers to Apache2 objects are being cast to references by doing this:
This however is incorrect, as de-referencing the pointer actually creates a temporary object and a reference to the temporary is returned. The correct way to cast is like this:
This might be the cause of issue #19.