mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 06:46:32 +03:00
Implement From<Vec<dc_location>> for dc_array_t
This commit is contained in:
@@ -138,6 +138,12 @@ impl dc_array_t {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Vec<dc_location>> for dc_array_t {
|
||||||
|
fn from(array: Vec<dc_location>) -> Self {
|
||||||
|
dc_array_t::Locations(array)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub unsafe fn dc_array_unref(array: *mut dc_array_t) {
|
pub unsafe fn dc_array_unref(array: *mut dc_array_t) {
|
||||||
if array.is_null() {
|
if array.is_null() {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user