Skip to content

Commit

Permalink
Tune lints for 1.82 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Oct 21, 2024
1 parent e4d84f8 commit 4f45f6b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ All user visible changes to `cucumber` crate will be documented in this file. Th

### BC Breaks

- Bumped up [MSRV] to 1.81 to get rid of `once_cell` crate and for `#[expect]` attribute usage. ([4010c1ad], [todo])
- Bumped up [MSRV] to 1.81 to get rid of `once_cell` crate and for `#[expect]` attribute usage. ([4010c1ad], [f1307038])

[4010c1ad]: /../../commit/4010c1ad6a53d6b7f0b28cefea73c8c13e880e9f
[todo]: /../../commit/todo-full
[f1307038]: /../../commit/f1307038cb6b1e38c1cc259a0e09fb583033d0cf



Expand Down
4 changes: 2 additions & 2 deletions codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ All user visible changes to `cucumber-codegen` crate will be documented in this

### BC Breaks

- Bumped up [MSRV] to 1.81 to get rid of `once_cell` crate and for `#[expect]` attribute usage. ([4010c1ad], [todo])
- Bumped up [MSRV] to 1.81 to get rid of `once_cell` crate and for `#[expect]` attribute usage. ([4010c1ad], [f1307038])

[4010c1ad]: /../../commit/4010c1ad6a53d6b7f0b28cefea73c8c13e880e9f
[todo]: /../../commit/todo-full
[f1307038]: /../../commit/f1307038cb6b1e38c1cc259a0e09fb583033d0cf



Expand Down
3 changes: 3 additions & 0 deletions codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
clippy::or_fun_call,
clippy::panic_in_result_fn,
clippy::partial_pub_fields,
clippy::pathbuf_init_then_push,
clippy::pedantic,
clippy::print_stderr,
clippy::print_stdout,
Expand Down Expand Up @@ -116,6 +117,7 @@
clippy::suspicious_xor_used_as_pow,
clippy::tests_outside_test_module,
clippy::todo,
clippy::too_long_first_doc_paragraph,
clippy::trailing_empty_array,
clippy::transmute_undefined_repr,
clippy::trivial_regex,
Expand All @@ -129,6 +131,7 @@
clippy::unnecessary_struct_initialization,
clippy::unneeded_field_pattern,
clippy::unused_peekable,
clippy::unused_result_ok,
clippy::unwrap_in_result,
clippy::unwrap_used,
clippy::use_debug,
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
clippy::or_fun_call,
clippy::panic_in_result_fn,
clippy::partial_pub_fields,
clippy::pathbuf_init_then_push,
clippy::pedantic,
clippy::print_stderr,
clippy::print_stdout,
Expand Down Expand Up @@ -117,6 +118,7 @@
clippy::suspicious_xor_used_as_pow,
clippy::tests_outside_test_module,
clippy::todo,
clippy::too_long_first_doc_paragraph,
clippy::trailing_empty_array,
clippy::transmute_undefined_repr,
clippy::trivial_regex,
Expand All @@ -130,6 +132,7 @@
clippy::unnecessary_struct_initialization,
clippy::unneeded_field_pattern,
clippy::unused_peekable,
clippy::unused_result_ok,
clippy::unwrap_in_result,
clippy::unwrap_used,
clippy::use_debug,
Expand Down
3 changes: 1 addition & 2 deletions src/parser/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ impl<I: AsRef<Path>> Parser<I> for Basic {
let path = input.as_ref();
path.canonicalize()
.or_else(|_| {
let mut buf = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
buf.push(
let buf = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join(
path.strip_prefix("/")
.or_else(|_| path.strip_prefix("./"))
.unwrap_or(path),
Expand Down

0 comments on commit 4f45f6b

Please sign in to comment.