diff --git a/src/dc_chat.rs b/src/dc_chat.rs index b84875285..2d0ade23d 100644 --- a/src/dc_chat.rs +++ b/src/dc_chat.rs @@ -2160,7 +2160,6 @@ pub unsafe fn dc_chat_is_verified(chat: *const Chat) -> libc::c_int { // TODO should return bool /rtn pub unsafe fn dc_chat_is_sending_locations(chat: *const Chat) -> libc::c_int { if chat.is_null() { - return 0i32; } (*chat).is_sending_locations diff --git a/src/dc_msg.rs b/src/dc_msg.rs index 7b99edad7..6dc03b482 100644 --- a/src/dc_msg.rs +++ b/src/dc_msg.rs @@ -407,9 +407,7 @@ pub unsafe fn dc_msg_set_location( latitude: libc::c_double, longitude: libc::c_double, ) { - if msg.is_null() - || (latitude == 0.0 && longitude == 0.0) - { + if msg.is_null() || (latitude == 0.0 && longitude == 0.0) { return; } @@ -1002,9 +1000,7 @@ pub unsafe fn dc_msg_is_increation(msg: *const dc_msg_t) -> libc::c_int { } pub unsafe fn dc_msg_is_setupmessage(msg: *const dc_msg_t) -> bool { - if msg.is_null() - || (*msg).type_0 != Viewtype::File - { + if msg.is_null() || (*msg).type_0 != Viewtype::File { return false; }