Skip to content

Commit 9d33148

Browse files
committed
Revert "build: increase MSRV to 1.81.0"
This reverts commit ffe6efe.
1 parent a305409 commit 9d33148

File tree

13 files changed

+21
-14
lines changed

13 files changed

+21
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ jobs:
103103
- os: macos-latest
104104
rust: 1.83.0
105105

106-
# Minimum Supported Rust Version = 1.81.0
106+
# Minimum Supported Rust Version = 1.77.0
107107
- os: ubuntu-latest
108-
rust: 1.81.0
108+
rust: 1.77.0
109109
runs-on: ${{ matrix.os }}
110110
steps:
111111
- uses: actions/checkout@v4

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "deltachat"
33
version = "1.152.0"
44
edition = "2021"
55
license = "MPL-2.0"
6-
rust-version = "1.81"
6+
rust-version = "1.77"
77
repository = "https://github.com/deltachat/deltachat-core-rust"
88

99
[profile.dev]

src/chat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl ChatId {
312312

313313
/// Create a group or mailinglist raw database record with the given parameters.
314314
/// The function does not add SELF nor checks if the record already exists.
315-
#[expect(clippy::too_many_arguments)]
315+
#[allow(clippy::too_many_arguments)]
316316
pub(crate) async fn create_multiuser_record(
317317
context: &Context,
318318
chattype: Chattype,
@@ -4444,7 +4444,7 @@ pub(crate) async fn delete_and_reset_all_device_msgs(context: &Context) -> Resul
44444444
///
44454445
/// For example, it can be a message showing that a member was added to a group.
44464446
/// Doesn't fail if the chat doesn't exist.
4447-
#[expect(clippy::too_many_arguments)]
4447+
#[allow(clippy::too_many_arguments)]
44484448
pub(crate) async fn add_info_msg_with_cmd(
44494449
context: &Context,
44504450
chat_id: ChatId,

src/contact.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ impl Contact {
805805
}
806806

807807
let mut name = sanitize_name(name);
808+
#[allow(clippy::collapsible_if)]
808809
if origin <= Origin::OutgoingTo {
809810
// The user may accidentally have written to a "noreply" address with another MUA:
810811
if addr.contains("noreply")

src/imap.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ impl Session {
13011301
/// Returns the last UID fetched successfully and the info about each downloaded message.
13021302
/// If the message is incorrect or there is a failure to write a message to the database,
13031303
/// it is skipped and the error is logged.
1304-
#[expect(clippy::too_many_arguments)]
1304+
#[allow(clippy::too_many_arguments)]
13051305
pub(crate) async fn fetch_many_msgs(
13061306
&mut self,
13071307
context: &Context,
@@ -2689,6 +2689,7 @@ mod tests {
26892689
}
26902690
}
26912691

2692+
#[allow(clippy::too_many_arguments)]
26922693
async fn check_target_folder_combination(
26932694
folder: &str,
26942695
mvbox_move: bool,

src/mimefactory.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@ impl MimeFactory {
10471047
part.body(text)
10481048
}
10491049

1050+
#[allow(clippy::cognitive_complexity)]
10501051
async fn render_message(
10511052
&mut self,
10521053
context: &Context,

src/mimeparser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ impl MimeMessage {
12791279
Ok(self.parts.len() > old_part_count)
12801280
}
12811281

1282-
#[expect(clippy::too_many_arguments)]
1282+
#[allow(clippy::too_many_arguments)]
12831283
async fn do_add_single_file_part(
12841284
&mut self,
12851285
context: &Context,

src/param.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ impl Params {
371371
/// Note that in the [ParamsFile::FsPath] case the blob can be
372372
/// created without copying if the path already refers to a valid
373373
/// blob. If so a [BlobObject] will be returned.
374+
#[allow(clippy::needless_lifetimes)]
374375
pub async fn get_blob<'a>(
375376
&self,
376377
key: Param,

src/pgp.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ use tokio::runtime::Handle;
2121
use crate::constants::KeyGenType;
2222
use crate::key::{DcKey, Fingerprint};
2323

24+
#[allow(missing_docs)]
2425
#[cfg(test)]
2526
pub(crate) const HEADER_AUTOCRYPT: &str = "autocrypt-prefer-encrypt";
2627

28+
#[allow(missing_docs)]
2729
pub const HEADER_SETUPCODE: &str = "passphrase-begin";
2830

2931
/// Preferred symmetric encryption algorithm.

src/quota.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mod tests {
187187
Ok(())
188188
}
189189

190-
#[expect(clippy::assertions_on_constants)]
190+
#[allow(clippy::assertions_on_constants)]
191191
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
192192
async fn test_quota_thresholds() -> anyhow::Result<()> {
193193
assert!(QUOTA_ALLCLEAR_PERCENTAGE > 50);

0 commit comments

Comments
 (0)