mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
remove some meanwhile unneeded allow-statements
This commit is contained in:
committed by
Alexander Krotov
parent
cb2a1147f0
commit
f73ba895af
@@ -2,7 +2,6 @@ use crate::location::Location;
|
|||||||
|
|
||||||
/* * the structure behind dc_array_t */
|
/* * the structure behind dc_array_t */
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
#[allow(non_camel_case_types)]
|
|
||||||
pub enum dc_array_t {
|
pub enum dc_array_t {
|
||||||
Locations(Vec<Location>),
|
Locations(Vec<Location>),
|
||||||
Uint(Vec<u32>),
|
Uint(Vec<u32>),
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
non_snake_case,
|
non_snake_case,
|
||||||
non_upper_case_globals,
|
non_upper_case_globals,
|
||||||
non_upper_case_globals,
|
non_upper_case_globals,
|
||||||
non_camel_case_types,
|
non_camel_case_types
|
||||||
non_snake_case
|
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|||||||
@@ -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(
|
pub(crate) fn add_contact_to_chat_ex(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
chat_id: u32,
|
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
|
/// 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
|
/// chat. To remove the profile image pass an empty string for the
|
||||||
/// `new_image` parameter.
|
/// `new_image` parameter.
|
||||||
#[allow(non_snake_case)]
|
|
||||||
pub fn set_chat_profile_image(
|
pub fn set_chat_profile_image(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
chat_id: u32,
|
chat_id: u32,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//! # Constants
|
//! # Constants
|
||||||
#![allow(non_camel_case_types, dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use deltachat_derive::*;
|
use deltachat_derive::*;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|||||||
@@ -1233,7 +1233,6 @@ fn hex_hash(s: impl AsRef<str>) -> String {
|
|||||||
hex::encode(&result[..8])
|
hex::encode(&result[..8])
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(non_snake_case)]
|
|
||||||
fn search_chat_ids_by_contact_ids(
|
fn search_chat_ids_by_contact_ids(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
unsorted_contact_ids: &[u32],
|
unsorted_contact_ids: &[u32],
|
||||||
|
|||||||
@@ -260,7 +260,6 @@ pub fn dc_derive_safe_stem_ext(filename: &str) -> (String, String) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// the returned suffix is lower-case
|
// the returned suffix is lower-case
|
||||||
#[allow(non_snake_case)]
|
|
||||||
pub fn dc_get_filesuffix_lc(path_filename: impl AsRef<str>) -> Option<String> {
|
pub fn dc_get_filesuffix_lc(path_filename: impl AsRef<str>) -> Option<String> {
|
||||||
Path::new(path_filename.as_ref())
|
Path::new(path_filename.as_ref())
|
||||||
.extension()
|
.extension()
|
||||||
|
|||||||
@@ -631,7 +631,6 @@ fn set_delivered(context: &Context, msg_id: MsgId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* special case for DC_JOB_SEND_MSG_TO_SMTP */
|
/* 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> {
|
pub fn job_send_msg(context: &Context, msg_id: MsgId) -> Result<(), Error> {
|
||||||
let mut msg = Message::load_from_db(context, msg_id)?;
|
let mut msg = Message::load_from_db(context, msg_id)?;
|
||||||
msg.try_calc_and_set_dimensions(context).ok();
|
msg.try_calc_and_set_dimensions(context).ok();
|
||||||
@@ -913,7 +912,6 @@ fn send_mdn(context: &Context, msg_id: MsgId) -> Result<(), Error> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(non_snake_case)]
|
|
||||||
fn add_smtp_job(
|
fn add_smtp_job(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
action: Action,
|
action: Action,
|
||||||
|
|||||||
Reference in New Issue
Block a user