Skip to content

Commit bc23145

Browse files
Dmitry Bogatovflub
authored andcommitted
Avoid unstable `inner_deref' feature
1 parent 765ac20 commit bc23145

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dc_chat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ unsafe fn set_draft_raw(context: &Context, chat_id: uint32_t, msg: *mut dc_msg_t
10251025
time(),
10261026
(*msg).type_0,
10271027
DC_STATE_OUT_DRAFT,
1028-
(*msg).text.deref().unwrap_or(""),
1028+
(*msg).text.as_ref().map(String::as_str).unwrap_or(""),
10291029
(*msg).param.to_string(),
10301030
1,
10311031
],

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(c_variadic, ptr_wrapping_offset_from, ptr_cast, inner_deref)]
1+
#![feature(c_variadic, ptr_wrapping_offset_from, ptr_cast)]
22

33
#[macro_use]
44
extern crate failure_derive;

0 commit comments

Comments
 (0)