Override non_camel_case_types warning on per-declaration basis

This commit is contained in:
Dmitry Bogatov
2019-07-28 01:58:12 +00:00
committed by Floris Bruynooghe
parent c6ccfd824e
commit 669ed0e0df
10 changed files with 13 additions and 4 deletions

View File

@@ -12,10 +12,13 @@ pub struct dc_saxparser_t {
}
/* len is only informational, text is already null-terminated */
#[allow(non_camel_case_types)]
pub type dc_saxparser_text_cb_t =
Option<unsafe fn(_: *mut libc::c_void, _: *const libc::c_char, _: libc::c_int) -> ()>;
#[allow(non_camel_case_types)]
pub type dc_saxparser_endtag_cb_t =
Option<unsafe fn(_: *mut libc::c_void, _: *const libc::c_char) -> ()>;
#[allow(non_camel_case_types)]
pub type dc_saxparser_starttag_cb_t = Option<
unsafe fn(_: *mut libc::c_void, _: *const libc::c_char, _: *mut *mut libc::c_char) -> (),
>;