mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +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
@@ -380,6 +380,7 @@ pub fn msgtype_has_file(msgtype: i32) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn prepare_msg_common<'a>(
|
||||
context: &'a Context,
|
||||
chat_id: uint32_t,
|
||||
@@ -468,6 +469,7 @@ unsafe fn prepare_msg_common<'a>(
|
||||
(*msg).id
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn prepare_msg_raw(
|
||||
context: &Context,
|
||||
chat: *mut Chat,
|
||||
@@ -997,6 +999,7 @@ pub unsafe fn dc_set_draft(context: &Context, chat_id: uint32_t, msg: *mut dc_ms
|
||||
}
|
||||
|
||||
// TODO should return bool /rtn
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn set_draft_raw(context: &Context, chat_id: uint32_t, msg: *mut dc_msg_t) -> libc::c_int {
|
||||
let mut OK_TO_CONTINUE = true;
|
||||
// similar to as dc_set_draft() but does not emit an event
|
||||
@@ -1554,6 +1557,7 @@ pub unsafe fn dc_add_contact_to_chat(
|
||||
}
|
||||
|
||||
// TODO should return bool /rtn
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe fn dc_add_contact_to_chat_ex(
|
||||
context: &Context,
|
||||
chat_id: u32,
|
||||
@@ -1880,6 +1884,7 @@ pub unsafe fn dc_set_chat_name(
|
||||
}
|
||||
|
||||
// TODO should return bool /rtn
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe fn dc_set_chat_profile_image(
|
||||
context: &Context,
|
||||
chat_id: uint32_t,
|
||||
|
||||
Reference in New Issue
Block a user