mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
cargo fmt only
This commit is contained in:
11
src/dc_qr.rs
11
src/dc_qr.rs
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user