Skip to content

Commit 32459b3

Browse files
committed
Reapply "build: increase MSRV to 1.81.0"
This reverts commit 9d33148.
1 parent 52e9daa commit 32459b3

File tree

13 files changed

+14
-21
lines changed

13 files changed

+14
-21
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.84.0
105105

106-
# Minimum Supported Rust Version = 1.77.0
106+
# Minimum Supported Rust Version = 1.81.0
107107
- os: ubuntu-latest
108-
rust: 1.77.0
108+
rust: 1.81.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.154.3"
44
edition = "2021"
55
license = "MPL-2.0"
6-
rust-version = "1.77"
6+
rust-version = "1.81"
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
@@ -313,7 +313,7 @@ impl ChatId {
313313

314314
/// Create a group or mailinglist raw database record with the given parameters.
315315
/// The function does not add SELF nor checks if the record already exists.
316-
#[allow(clippy::too_many_arguments)]
316+
#[expect(clippy::too_many_arguments)]
317317
pub(crate) async fn create_multiuser_record(
318318
context: &Context,
319319
chattype: Chattype,
@@ -4616,7 +4616,7 @@ pub(crate) async fn delete_and_reset_all_device_msgs(context: &Context) -> Resul
46164616
///
46174617
/// For example, it can be a message showing that a member was added to a group.
46184618
/// Doesn't fail if the chat doesn't exist.
4619-
#[allow(clippy::too_many_arguments)]
4619+
#[expect(clippy::too_many_arguments)]
46204620
pub(crate) async fn add_info_msg_with_cmd(
46214621
context: &Context,
46224622
chat_id: ChatId,

src/contact.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,6 @@ impl Contact {
802802
}
803803

804804
let mut name = sanitize_name(name);
805-
#[allow(clippy::collapsible_if)]
806805
if origin <= Origin::OutgoingTo {
807806
// The user may accidentally have written to a "noreply" address with another MUA:
808807
if addr.contains("noreply")

src/imap.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ impl Session {
13311331
/// Returns the last UID fetched successfully and the info about each downloaded message.
13321332
/// If the message is incorrect or there is a failure to write a message to the database,
13331333
/// it is skipped and the error is logged.
1334-
#[allow(clippy::too_many_arguments)]
1334+
#[expect(clippy::too_many_arguments)]
13351335
pub(crate) async fn fetch_many_msgs(
13361336
&mut self,
13371337
context: &Context,
@@ -2726,7 +2726,6 @@ mod tests {
27262726
}
27272727
}
27282728

2729-
#[allow(clippy::too_many_arguments)]
27302729
async fn check_target_folder_combination(
27312730
folder: &str,
27322731
mvbox_move: bool,

src/mimefactory.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,6 @@ impl MimeFactory {
11501150
part.body(text)
11511151
}
11521152

1153-
#[allow(clippy::cognitive_complexity)]
11541153
async fn render_message(
11551154
&mut self,
11561155
context: &Context,

src/mimeparser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ impl MimeMessage {
12901290
Ok(self.parts.len() > old_part_count)
12911291
}
12921292

1293-
#[allow(clippy::too_many_arguments)]
1293+
#[expect(clippy::too_many_arguments)]
12941294
async fn do_add_single_file_part(
12951295
&mut self,
12961296
context: &Context,

src/param.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ impl Params {
373373
/// Note that in the [ParamsFile::FsPath] case the blob can be
374374
/// created without copying if the path already refers to a valid
375375
/// blob. If so a [BlobObject] will be returned.
376-
#[allow(clippy::needless_lifetimes)]
377376
pub async fn get_blob<'a>(
378377
&self,
379378
key: Param,

src/pgp.rs

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

24-
#[allow(missing_docs)]
2524
#[cfg(test)]
2625
pub(crate) const HEADER_AUTOCRYPT: &str = "autocrypt-prefer-encrypt";
2726

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

3129
/// 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-
#[allow(clippy::assertions_on_constants)]
190+
#[expect(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)