mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
Override `non_shake_case' warning on per-function basis
This change removes global override of `non_shake_case' warning and replaces it with per-function overrrides. This way, compiler will complain about style guide violation in new code. It should be noted, that `rustc' is not smart enough to emit warning when override is no longer needed, it must be checked manually.
This commit is contained in:
committed by
Floris Bruynooghe
parent
39cc93240f
commit
c6ccfd824e
@@ -917,6 +917,7 @@ which tries to create or find out the chat_id by:
|
||||
|
||||
So when the function returns, the caller has the group id matching the current
|
||||
state of the group. */
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn create_or_lookup_group(
|
||||
context: &Context,
|
||||
mime_parser: &mut dc_mimeparser_t,
|
||||
@@ -1540,6 +1541,7 @@ fn hex_hash(s: impl AsRef<str>) -> *const libc::c_char {
|
||||
unsafe { to_cstring(result_hex) as *const _ }
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn search_chat_ids_by_contact_ids(
|
||||
context: &Context,
|
||||
unsorted_contact_ids: *const dc_array_t,
|
||||
|
||||
Reference in New Issue
Block a user