mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Reduce the scope of clippy exceptions
This prevents creation of new overly complex functions.
This commit is contained in:
committed by
holger krekel
parent
0f52f63863
commit
1732c3b350
@@ -249,6 +249,7 @@ pub fn dc_receive_imf(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments, clippy::cognitive_complexity)]
|
||||
fn add_parts(
|
||||
context: &Context,
|
||||
mut mime_parser: &mut MimeMessage,
|
||||
@@ -700,6 +701,7 @@ fn save_locations(
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn calc_timestamps(
|
||||
context: &Context,
|
||||
chat_id: ChatId,
|
||||
@@ -744,7 +746,7 @@ fn calc_timestamps(
|
||||
/// - create an ad-hoc group based on the recipient list
|
||||
///
|
||||
/// on success the function returns the found/created (chat_id, chat_blocked) tuple .
|
||||
#[allow(non_snake_case)]
|
||||
#[allow(non_snake_case, clippy::cognitive_complexity)]
|
||||
fn create_or_lookup_group(
|
||||
context: &Context,
|
||||
mime_parser: &mut MimeMessage,
|
||||
|
||||
Reference in New Issue
Block a user