mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +03:00
refactor: rename dc_array_t::as_ptr() into dc_array_t::into_raw()
By convention as_* functions do not consume self by taking the reference.
This commit is contained in:
committed by
Friedel Ziegelmayer
parent
c34e66adb6
commit
0cffbaf1e9
@@ -527,7 +527,7 @@ pub fn dc_get_fresh_msgs(context: &Context) -> *mut dc_array_t {
|
||||
let id = row?;
|
||||
ret.add_id(id);
|
||||
}
|
||||
Ok(ret.as_ptr())
|
||||
Ok(ret.into_raw())
|
||||
},
|
||||
)
|
||||
.unwrap()
|
||||
@@ -578,7 +578,7 @@ pub fn dc_search_msgs(
|
||||
.is_ok();
|
||||
|
||||
if success {
|
||||
return ret.as_ptr();
|
||||
return ret.into_raw();
|
||||
}
|
||||
|
||||
std::ptr::null_mut()
|
||||
|
||||
Reference in New Issue
Block a user