mirror of
https://github.com/chatmail/core.git
synced 2026-05-12 11:26: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
@@ -1182,6 +1182,7 @@ unsafe fn build_body_text(text: *mut libc::c_char) -> *mut mailmime {
|
||||
message_part
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn build_body_file(
|
||||
msg: *const dc_msg_t,
|
||||
mut base_name: *const libc::c_char,
|
||||
@@ -1350,7 +1351,7 @@ unsafe fn build_body_file(
|
||||
/*******************************************************************************
|
||||
* Render
|
||||
******************************************************************************/
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
unsafe fn is_file_size_okay(msg: *const dc_msg_t) -> libc::c_int {
|
||||
let mut file_size_okay: libc::c_int = 1;
|
||||
let pathNfilename: *mut libc::c_char =
|
||||
|
||||
Reference in New Issue
Block a user