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

@@ -16,6 +16,7 @@ use crate::x::*;
// location handling
#[derive(Clone, Default)]
#[allow(non_camel_case_types)]
pub struct dc_location {
pub location_id: uint32_t,
pub latitude: libc::c_double,
@@ -47,6 +48,7 @@ impl dc_location {
}
#[derive(Clone)]
#[allow(non_camel_case_types)]
pub struct dc_kml_t {
pub addr: *mut libc::c_char,
pub locations: *mut dc_array_t,