Skip to content

Commit

Permalink
Tune lints for 1.82 Rust
Browse files Browse the repository at this point in the history
- upgrade `sealed` crate from 0.5 to 0.6 version
- upgrade `derive_more` crate from 0.99 to 1.0 version
  • Loading branch information
tyranron committed Oct 21, 2024
1 parent 88d7c71 commit 80629d1
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 4 deletions.
3 changes: 3 additions & 0 deletions codegen/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,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 @@ -103,6 +104,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 @@ -116,6 +118,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 codegen/shim/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,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 @@ -103,6 +104,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 @@ -116,6 +118,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
6 changes: 4 additions & 2 deletions codegen/src/es/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ pub const fn concat_slices<T: Copy, const LEN: usize>(
}

/// Compile time reflection of an [`Event`] (either a single or multiple
/// [`StaticEvent`]s or [`ConcreteEvent`]s), used by code generation to generate
/// additional `const` assertions of [`Event`] properties.
/// [`StaticEvent`]s or [`ConcreteEvent`]s).
///
/// Used by code generation to generate additional `const` assertions of
/// [`Event`] properties.
///
/// > **NOTE**: Implementations of this trait are automatically generated by
/// > `#[derive(Event)]` macro, and don't represent a part of public
Expand Down
3 changes: 3 additions & 0 deletions codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,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 @@ -103,6 +104,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 @@ -116,6 +118,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
4 changes: 2 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ es = ["dep:derive_more", "dep:sealed"]
reflect = []

[dependencies]
derive_more = { version = "0.99", features = ["deref", "deref_mut", "display", "into"], default-features = false, optional = true }
derive_more = { version = "1.0", features = ["deref", "deref_mut", "display", "into"], optional = true }
ref-cast = "1.0"
sealed = { version = "0.5", optional = true }
sealed = { version = "0.6", optional = true }

[dev-dependencies]
arcane = { version = "0.1.0-dev", path = "..", features = ["derive", "es", "reflect"] }
3 changes: 3 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,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 @@ -103,6 +104,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 @@ -116,6 +118,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 @@ -73,6 +73,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 @@ -103,6 +104,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 @@ -116,6 +118,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

0 comments on commit 80629d1

Please sign in to comment.