Skip to content

Commit 283279f

Browse files
committed
Tune lints for 1.61 Rust
1 parent 8bd5210 commit 283279f

File tree

8 files changed

+10
-7
lines changed

8 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
strategy:
125125
fail-fast: false
126126
matrix:
127-
msrv: ["1.60.0"]
127+
msrv: ["1.61.0"]
128128
os:
129129
- ubuntu
130130
- macOS

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ All user visible changes to `cucumber-expressions` crate will be documented in t
1313

1414
### BC Breaks
1515

16-
- Bumped up [MSRV] to 1.60 for more clever support of [Cargo feature]s.
16+
- Bumped up [MSRV] to 1.61 for more clever support of [Cargo feature]s.
1717

1818

1919

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cucumber-expressions"
33
version = "0.3.0-dev"
44
edition = "2021"
5-
rust-version = "1.60"
5+
rust-version = "1.61"
66
description = "Cucumber Expressions AST and parser."
77
license = "MIT OR Apache-2.0"
88
authors = [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Crates.io](https://img.shields.io/crates/v/cucumber-expressions.svg?maxAge=2592000)](https://crates.io/crates/cucumber-expressions)
55
[![Documentation](https://docs.rs/cucumber-expressions/badge.svg)](https://docs.rs/cucumber-expressions)
66
[![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)
7-
[![Rust 1.60+](https://img.shields.io/badge/rustc-1.60+-lightgray.svg "Rust 1.60+")](https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html)
7+
[![Rust 1.61+](https://img.shields.io/badge/rustc-1.61+-lightgray.svg "Rust 1.61+")](https://blog.rust-lang.org/2022/05/19/Rust-1.61.0.html)
88
[![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance)
99

1010
- [Changelog](https://github.com/cucumber-rs/cucumber-expressions/blob/main/CHANGELOG.md)

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
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.60"
5+
rust-version = "1.61"
66
description = "Fuzz testing for `cucumber-expressions` crate."
77
license = "MIT OR Apache-2.0"
88
authors = [

src/expand/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'s> Expression<Spanned<'s>> {
125125
/// `parameters` in addition to [default ones][1].
126126
///
127127
/// [1]: https://github.com/cucumber/cucumber-expressions#parameter-types
128-
pub fn with_parameters<P: ParametersProvider<Spanned<'s>>>(
128+
pub const fn with_parameters<P: ParametersProvider<Spanned<'s>>>(
129129
self,
130130
parameters: P,
131131
) -> WithCustomParameters<Self, P> {

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
clippy::if_then_some_else_none,
4747
clippy::imprecise_flops,
4848
clippy::index_refutable_slice,
49+
clippy::iter_with_drain,
4950
clippy::let_underscore_must_use,
5051
clippy::lossy_float_literal,
5152
clippy::map_err_ignore,
@@ -56,6 +57,7 @@
5657
clippy::mutex_atomic,
5758
clippy::mutex_integer,
5859
clippy::nonstandard_macro_braces,
60+
clippy::only_used_in_recursion,
5961
clippy::option_if_let_else,
6062
clippy::panic_in_result_fn,
6163
clippy::pedantic,
@@ -77,6 +79,7 @@
7779
clippy::trailing_empty_array,
7880
clippy::transmute_undefined_repr,
7981
clippy::trivial_regex,
82+
clippy::try_err,
8083
clippy::undocumented_unsafe_blocks,
8184
clippy::unimplemented,
8285
clippy::unnecessary_self_imports,

src/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ impl<Input: Display> Error<Input> {
775775
///
776776
/// [`Error`]: enum@Error
777777
/// [`Failure`]: Err::Failure
778-
fn failure(self) -> Err<Self> {
778+
const fn failure(self) -> Err<Self> {
779779
Err::Failure(self)
780780
}
781781
}

0 commit comments

Comments
 (0)