Skip to content

Commit e1bb926

Browse files
committed
Tune lints for 1.81 Rust
- bump up MSRV to 1.81
1 parent 58f4d28 commit e1bb926

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
strategy:
102102
fail-fast: false
103103
matrix:
104-
msrv: ["1.65.0"]
104+
msrv: ["1.81.0"]
105105
os: ["ubuntu", "macOS", "windows"]
106106
runs-on: ${{ matrix.os }}-latest
107107
steps:

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ All user visible changes to `cucumber-expressions` crate will be documented in t
1313

1414
### BC Breaks
1515

16-
- Bumped up [MSRV] to 1.65 because of newer dependencies versions.
16+
- Bumped up [MSRV] to 1.81 because for `#[expect]` attribute usage. ([todo])
17+
18+
[todo]: /../../commit/todo
1719

1820

1921

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cucumber-expressions"
33
version = "0.3.0"
44
edition = "2021"
5-
rust-version = "1.65"
5+
rust-version = "1.81"
66
description = "Cucumber Expressions AST and parser."
77
license = "MIT OR Apache-2.0"
88
authors = [

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
===============================
33

44
[![crates.io](https://img.shields.io/crates/v/cucumber-expressions.svg?maxAge=2592000 "crates.io")](https://crates.io/crates/cucumber-expressions)
5-
[![Rust 1.65+](https://img.shields.io/badge/rustc-1.65+-lightgray.svg "Rust 1.65+")](https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html)
5+
[![Rust 1.81+](https://img.shields.io/badge/rustc-1.81+-lightgray.svg "Rust 1.81+")](https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html)
66
[![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg "Unsafe forbidden")](https://github.com/rust-secure-code/safety-dance)
77
[![CI](https://github.com/cucumber-rs/cucumber-expressions/workflows/CI/badge.svg?branch=main "CI")](https://github.com/cucumber-rs/cucumber-expressions/actions?query=workflow%3ACI+branch%3Amaster)
88
[![Rust docs](https://docs.rs/cucumber-expressions/badge.svg "Rust docs")](https://docs.rs/cucumber-expressions)

fuzz/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cucumber-expressions-fuzz"
33
version = "0.0.0"
44
edition = "2021"
5-
rust-version = "1.65"
5+
rust-version = "1.81"
66
description = "Fuzz testing for `cucumber-expressions` crate."
77
license = "MIT OR Apache-2.0"
88
authors = [

src/expand/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ pub use self::parameters::{
3535
Provider as ParametersProvider, WithCustom as WithCustomParameters,
3636
};
3737

38-
#[allow(clippy::multiple_inherent_impl)] // because of `into-regex` feature
3938
impl<'s> Expression<Spanned<'s>> {
4039
/// Parses the given `input` as an [`Expression`], and immediately expands
4140
/// it into the appropriate [`Regex`].

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
#![forbid(non_ascii_idents, unsafe_code)]
2626
#![warn(
2727
clippy::absolute_paths,
28+
clippy::allow_attributes,
29+
clippy::allow_attributes_without_reason,
2830
clippy::as_conversions,
2931
clippy::as_ptr_cast_mut,
3032
clippy::assertions_on_result_states,
3133
clippy::branches_sharing_code,
34+
clippy::cfg_not_test,
3235
clippy::clear_with_drain,
3336
clippy::clone_on_ref_ptr,
3437
clippy::collection_is_never_read,
@@ -99,6 +102,7 @@
99102
clippy::rest_pat_in_fully_bound_structs,
100103
clippy::same_name_method,
101104
clippy::semicolon_inside_block,
105+
clippy::set_contains_or_insert,
102106
clippy::shadow_unrelated,
103107
clippy::significant_drop_in_scrutinee,
104108
clippy::significant_drop_tightening,
@@ -160,7 +164,7 @@
160164
variant_size_differences
161165
)]
162166
// TODO: Remove on next `derive_more` major version.
163-
#![allow(clippy::uninlined_format_args)]
167+
#![expect(clippy::uninlined_format_args, reason = "`derive_more` expansion")]
164168

165169
pub mod ast;
166170
mod combinator;

0 commit comments

Comments
 (0)