mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 03:16: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
@@ -536,6 +536,7 @@ pub unsafe fn dc_normalize_setup_code(
|
||||
to_cstring(out)
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe fn dc_job_do_DC_JOB_IMEX_IMAP(context: &Context, job: *mut dc_job_t) {
|
||||
let mut current_block: u64;
|
||||
let mut success: libc::c_int = 0i32;
|
||||
@@ -767,6 +768,7 @@ pub unsafe fn dc_job_do_DC_JOB_IMEX_IMAP(context: &Context, job: *mut dc_job_t)
|
||||
******************************************************************************/
|
||||
|
||||
// TODO should return bool /rtn
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn import_backup(context: &Context, backup_to_import: *const libc::c_char) -> libc::c_int {
|
||||
info!(
|
||||
context,
|
||||
@@ -885,6 +887,7 @@ unsafe fn import_backup(context: &Context, backup_to_import: *const libc::c_char
|
||||
/* the FILE_PROGRESS macro calls the callback with the permille of files processed.
|
||||
The macro avoids weird values of 0% or 100% while still working. */
|
||||
// TODO should return bool /rtn
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn export_backup(context: &Context, dir: *const libc::c_char) -> libc::c_int {
|
||||
let mut current_block: u64;
|
||||
let mut success: libc::c_int = 0;
|
||||
|
||||
Reference in New Issue
Block a user