diff --git a/deltachat-ffi/src/dc_array.rs b/deltachat-ffi/src/dc_array.rs index d9b2d8d2a..bb41d2b73 100644 --- a/deltachat-ffi/src/dc_array.rs +++ b/deltachat-ffi/src/dc_array.rs @@ -2,7 +2,6 @@ use crate::location::Location; /* * the structure behind dc_array_t */ #[derive(Debug, Clone)] -#[allow(non_camel_case_types)] pub enum dc_array_t { Locations(Vec), Uint(Vec), diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 6f418391f..0d907d756 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -3,8 +3,7 @@ non_snake_case, non_upper_case_globals, non_upper_case_globals, - non_camel_case_types, - non_snake_case + non_camel_case_types )] #[macro_use] diff --git a/src/chat.rs b/src/chat.rs index 73b0a7a56..5d8807c23 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -1569,7 +1569,6 @@ pub fn add_contact_to_chat(context: &Context, chat_id: u32, contact_id: u32) -> } } -#[allow(non_snake_case)] pub(crate) fn add_contact_to_chat_ex( context: &Context, chat_id: u32, @@ -1950,7 +1949,6 @@ pub fn set_chat_name( /// The profile image can only be set when you are a member of the /// chat. To remove the profile image pass an empty string for the /// `new_image` parameter. -#[allow(non_snake_case)] pub fn set_chat_profile_image( context: &Context, chat_id: u32, diff --git a/src/constants.rs b/src/constants.rs index dc0d8a013..33b62eef3 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,5 +1,5 @@ //! # Constants -#![allow(non_camel_case_types, dead_code)] +#![allow(dead_code)] use deltachat_derive::*; use lazy_static::lazy_static; diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index f9f11dbce..1e8751a3e 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -1233,7 +1233,6 @@ fn hex_hash(s: impl AsRef) -> String { hex::encode(&result[..8]) } -#[allow(non_snake_case)] fn search_chat_ids_by_contact_ids( context: &Context, unsorted_contact_ids: &[u32], diff --git a/src/dc_tools.rs b/src/dc_tools.rs index 0939baaf4..878b08ca4 100644 --- a/src/dc_tools.rs +++ b/src/dc_tools.rs @@ -260,7 +260,6 @@ pub fn dc_derive_safe_stem_ext(filename: &str) -> (String, String) { } // the returned suffix is lower-case -#[allow(non_snake_case)] pub fn dc_get_filesuffix_lc(path_filename: impl AsRef) -> Option { Path::new(path_filename.as_ref()) .extension() diff --git a/src/job.rs b/src/job.rs index 869ce5aea..15d0a241e 100644 --- a/src/job.rs +++ b/src/job.rs @@ -631,7 +631,6 @@ fn set_delivered(context: &Context, msg_id: MsgId) { } /* special case for DC_JOB_SEND_MSG_TO_SMTP */ -#[allow(non_snake_case)] pub fn job_send_msg(context: &Context, msg_id: MsgId) -> Result<(), Error> { let mut msg = Message::load_from_db(context, msg_id)?; msg.try_calc_and_set_dimensions(context).ok(); @@ -913,7 +912,6 @@ fn send_mdn(context: &Context, msg_id: MsgId) -> Result<(), Error> { Ok(()) } -#[allow(non_snake_case)] fn add_smtp_job( context: &Context, action: Action,