mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36:30 +03:00
cargo fmt
This commit is contained in:
committed by
holger krekel
parent
c713474d1f
commit
a29f06a730
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user