mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +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
@@ -300,6 +300,7 @@ pub unsafe fn dc_msg_get_filemime(msg: *const dc_msg_t) -> *mut libc::c_char {
|
||||
};
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe fn dc_msg_guess_msgtype_from_suffix(
|
||||
pathNfilename: *const libc::c_char,
|
||||
mut ret_msgtype: *mut libc::c_int,
|
||||
@@ -708,6 +709,7 @@ pub unsafe fn dc_msg_get_text(msg: *const dc_msg_t) -> *mut libc::c_char {
|
||||
to_cstring(res)
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe fn dc_msg_get_filename(msg: *const dc_msg_t) -> *mut libc::c_char {
|
||||
let mut ret: *mut libc::c_char = 0 as *mut libc::c_char;
|
||||
let mut pathNfilename: *mut libc::c_char = 0 as *mut libc::c_char;
|
||||
@@ -831,6 +833,7 @@ pub unsafe fn dc_msg_get_summarytext(
|
||||
}
|
||||
|
||||
/* the returned value must be free()'d */
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe fn dc_msg_get_summarytext_by_raw(
|
||||
type_0: libc::c_int,
|
||||
text: *const libc::c_char,
|
||||
|
||||
Reference in New Issue
Block a user