mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Avoid unstable `inner_deref' feature
This commit is contained in:
committed by
Floris Bruynooghe
parent
765ac2005e
commit
bc2314586c
@@ -1025,7 +1025,7 @@ unsafe fn set_draft_raw(context: &Context, chat_id: uint32_t, msg: *mut dc_msg_t
|
|||||||
time(),
|
time(),
|
||||||
(*msg).type_0,
|
(*msg).type_0,
|
||||||
DC_STATE_OUT_DRAFT,
|
DC_STATE_OUT_DRAFT,
|
||||||
(*msg).text.deref().unwrap_or(""),
|
(*msg).text.as_ref().map(String::as_str).unwrap_or(""),
|
||||||
(*msg).param.to_string(),
|
(*msg).param.to_string(),
|
||||||
1,
|
1,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#![feature(c_variadic, ptr_wrapping_offset_from, ptr_cast, inner_deref)]
|
#![feature(c_variadic, ptr_wrapping_offset_from, ptr_cast)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate failure_derive;
|
extern crate failure_derive;
|
||||||
|
|||||||
Reference in New Issue
Block a user