From 1497f263dc6e2a281810f2579949d07265c70dc0 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 2 Sep 2019 12:59:47 +0300 Subject: [PATCH] Mark Chatlist::get_summary as safe --- src/chatlist.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatlist.rs b/src/chatlist.rs index a3a130292..72d6ca566 100644 --- a/src/chatlist.rs +++ b/src/chatlist.rs @@ -247,7 +247,7 @@ impl<'a> Chatlist<'a> { /// - dc_lot_t::timestamp: the timestamp of the message. 0 if not applicable. /// - dc_lot_t::state: The state of the message as one of the DC_STATE_* constants (see #dc_msg_get_state()). // 0 if not applicable. - pub unsafe fn get_summary(&self, index: usize, chat: Option<&Chat<'a>>) -> Lot { + pub fn get_summary(&self, index: usize, chat: Option<&Chat<'a>>) -> Lot { // The summary is created by the chat, not by the last message. // This is because we may want to display drafts here or stuff as // "is typing".