Skip to content

Commit 2388d6f

Browse files
committed
Tune lints for 1.65 Rust
1 parent 75de8b0 commit 2388d6f

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ All user visible changes to `cucumber-expressions` crate will be documented in t
1414
### BC Breaks
1515

1616
- Bumped up [MSRV] to 1.62 for more clever support of [Cargo feature]s.
17+
- `Box`ed `ParameterError::RenameRegexGroup::err` field due to `clippy::result_large_err` lint suggestion.
1718

1819

1920

src/expand/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ where
186186
/// [`Error`] of parsing the [`Regex`] with renamed capturing groups.
187187
///
188188
/// [`Error`]: regex_syntax::Error
189-
err: regex_syntax::Error,
189+
err: Box<regex_syntax::Error>,
190190
},
191191
}
192192

src/expand/parameters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ where
224224
ParameterError::RenameRegexGroup {
225225
parameter,
226226
re,
227-
err,
227+
err: Box::new(err),
228228
},
229229
)));
230230
}

src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
html_favicon_url = "https://avatars.githubusercontent.com/u/91469139?s=256"
1414
)]
1515
#![doc = include_str!("../README.md")]
16+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1617
#![deny(
1718
macro_use_extern_crate,
1819
nonstandard_style,
@@ -25,6 +26,7 @@
2526
#![forbid(non_ascii_idents, unsafe_code)]
2627
#![warn(
2728
clippy::as_conversions,
29+
clippy::assertions_on_result_states,
2830
clippy::branches_sharing_code,
2931
clippy::clone_on_ref_ptr,
3032
clippy::create_dir,
@@ -49,9 +51,10 @@
4951
clippy::if_then_some_else_none,
5052
clippy::imprecise_flops,
5153
clippy::index_refutable_slice,
54+
clippy::iter_on_empty_collections,
55+
clippy::iter_on_single_items,
5256
clippy::iter_with_drain,
5357
clippy::large_include_file,
54-
clippy::let_underscore_must_use,
5558
clippy::lossy_float_literal,
5659
clippy::map_err_ignore,
5760
clippy::mem_forget,
@@ -61,7 +64,6 @@
6164
clippy::mutex_atomic,
6265
clippy::mutex_integer,
6366
clippy::nonstandard_macro_braces,
64-
clippy::only_used_in_recursion,
6567
clippy::option_if_let_else,
6668
clippy::panic_in_result_fn,
6769
clippy::pedantic,
@@ -72,6 +74,7 @@
7274
clippy::rest_pat_in_fully_bound_structs,
7375
clippy::same_name_method,
7476
clippy::shadow_unrelated,
77+
clippy::significant_drop_in_scrutinee,
7578
clippy::str_to_string,
7679
clippy::string_add,
7780
clippy::string_lit_as_bytes,
@@ -88,6 +91,7 @@
8891
clippy::unimplemented,
8992
clippy::unnecessary_self_imports,
9093
clippy::unneeded_field_pattern,
94+
clippy::unused_peekable,
9195
clippy::unwrap_in_result,
9296
clippy::unwrap_used,
9397
clippy::use_debug,
@@ -96,6 +100,7 @@
96100
clippy::verbose_file_reads,
97101
clippy::wildcard_enum_match_arm,
98102
future_incompatible,
103+
let_underscore_drop,
99104
meta_variable_misuse,
100105
missing_copy_implementations,
101106
missing_debug_implementations,
@@ -113,7 +118,6 @@
113118
unused_tuple_struct_fields,
114119
variant_size_differences
115120
)]
116-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
117121

118122
pub mod ast;
119123
mod combinator;

0 commit comments

Comments
 (0)