mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 23:46:31 +03:00
Merge pull request #244 from link2xt/dc_location_vec
Replace some dc_array_t with Vec<dc_location>
This commit is contained in:
@@ -147,6 +147,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) {
|
||||
if array.is_null() {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user