Skip to content

Commit b0d7dad

Browse files
Dmitry BogatovDmitry Bogatov
authored andcommitted
Avoid unstable `inner_deref' feature
1 parent e8621c2 commit b0d7dad

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
@@ -1024,7 +1024,7 @@ unsafe fn set_draft_raw(context: &Context, chat_id: uint32_t, msg: *mut dc_msg_t
10241024
time(),
10251025
(*msg).type_0,
10261026
DC_STATE_OUT_DRAFT,
1027-
(*msg).text.deref().unwrap_or(""),
1027+
(*msg).text.as_ref().map(String::as_str).unwrap_or(""),
10281028
(*msg).param.to_string(),
10291029
1,
10301030
],

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)