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
@@ -454,6 +454,7 @@ pub fn dc_add_or_lookup_contact(
|
||||
row_id
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub unsafe fn dc_add_address_book(context: &Context, adr_book: *const libc::c_char) -> libc::c_int {
|
||||
let mut lines: *mut carray = 0 as *mut carray;
|
||||
let mut i: size_t;
|
||||
@@ -526,6 +527,7 @@ pub unsafe fn dc_normalize_name(full_name: *mut libc::c_char) {
|
||||
};
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn dc_get_contacts(
|
||||
context: &Context,
|
||||
listflags: u32,
|
||||
|
||||
Reference in New Issue
Block a user