cargo fmt

This commit is contained in:
Simon Laux
2019-08-12 08:50:18 +02:00
committed by holger krekel
parent c713474d1f
commit a29f06a730
2 changed files with 2 additions and 7 deletions

View File

@@ -2160,7 +2160,6 @@ pub unsafe fn dc_chat_is_verified(chat: *const Chat) -> libc::c_int {
// TODO should return bool /rtn // TODO should return bool /rtn
pub unsafe fn dc_chat_is_sending_locations(chat: *const Chat) -> libc::c_int { pub unsafe fn dc_chat_is_sending_locations(chat: *const Chat) -> libc::c_int {
if chat.is_null() { if chat.is_null() {
return 0i32; return 0i32;
} }
(*chat).is_sending_locations (*chat).is_sending_locations

View File

@@ -407,9 +407,7 @@ pub unsafe fn dc_msg_set_location(
latitude: libc::c_double, latitude: libc::c_double,
longitude: libc::c_double, longitude: libc::c_double,
) { ) {
if msg.is_null() if msg.is_null() || (latitude == 0.0 && longitude == 0.0) {
|| (latitude == 0.0 && longitude == 0.0)
{
return; 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 { pub unsafe fn dc_msg_is_setupmessage(msg: *const dc_msg_t) -> bool {
if msg.is_null() if msg.is_null() || (*msg).type_0 != Viewtype::File {
|| (*msg).type_0 != Viewtype::File
{
return false; return false;
} }