cargo fmt only

This commit is contained in:
holger krekel
2019-07-22 17:22:44 +02:00
parent c914a0339b
commit 4128aae331

View File

@@ -276,13 +276,8 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc
} }
} else if !addr.is_null() { } else if !addr.is_null() {
(*qr_parsed).state = 320i32; (*qr_parsed).state = 320i32;
(*qr_parsed).id = dc_add_or_lookup_contact( (*qr_parsed).id =
context, dc_add_or_lookup_contact(context, name, addr, 0x80i32, 0 as *mut libc::c_int)
name,
addr,
0x80i32,
0 as *mut libc::c_int,
)
} else if strstr(qr, b"http://\x00" as *const u8 as *const libc::c_char) } else if strstr(qr, b"http://\x00" as *const u8 as *const libc::c_char)
== qr as *mut libc::c_char == qr as *mut libc::c_char
|| strstr(qr, b"https://\x00" as *const u8 as *const libc::c_char) || strstr(qr, b"https://\x00" as *const u8 as *const libc::c_char)
@@ -298,8 +293,6 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc
dc_add_device_msg(context, chat_id, device_msg); dc_add_device_msg(context, chat_id, device_msg);
} }
} }
} }
free(addr as *mut libc::c_void); free(addr as *mut libc::c_void);
free(fingerprint as *mut libc::c_void); free(fingerprint as *mut libc::c_void);