You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl::easy::Easy2::default_configure registers an error buffer like this:
self.setopt_ptr(
curl_sys::CURLOPT_ERRORBUFFER,self.inner.error_buf.borrow().as_ptr()as*const_,).expect("failed to set error buffer");
CURLOPT_ERRORBUFFER requires mutable access over the buffer, and it is important that the buffer pointer is still valid later on when further library calls are made. However, error_buf is borrowed immutably and only for a short time (until the end of the statement).
curl::easy::Easy2::default_configure
registers an error buffer like this:CURLOPT_ERRORBUFFER
requires mutable access over the buffer, and it is important that the buffer pointer is still valid later on when further library calls are made. However,error_buf
is borrowed immutably and only for a short time (until the end of the statement).(A mutable borrow might look like this:
That does not solve the lifetime problem, though.)
The text was updated successfully, but these errors were encountered: