Skip to content

Commit

Permalink
chore: Enable additional lints
Browse files Browse the repository at this point in the history
  • Loading branch information
VorpalBlade committed Sep 8, 2024
1 parent 0b19d2a commit 74bbf0f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
26 changes: 25 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,46 @@ pretty_assertions = { version = "1.4.0", default-features = false, features = [
] }

[lints.rust]
rust-2018-idioms = "warn"
elided_lifetimes_in_paths = "warn"
keyword_idents = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
redundant_lifetimes = "warn"
rust_2018_idioms = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unreachable_pub = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"

[lints.clippy]
assigning_clones = "warn"
cast_lossless = "warn"
cloned_instead_of_copied = "warn"
derive_partial_eq_without_eq = "warn"
doc_markdown = "warn"
equatable_if_let = "warn"
explicit_iter_loop = "warn"
flat_map_option = "warn"
format_push_string = "warn"
ignored_unit_patterns = "warn"
manual_assert = "warn"
manual_let_else = "warn"
manual_string_new = "warn"
needless_pass_by_value = "warn"
or_fun_call = "warn"
ptr_as_ptr = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
semicolon_if_nothing_returned = "warn"
type_repetition_in_bounds = "warn"
undocumented_unsafe_blocks = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_safety_doc = "warn"
unnested_or_patterns = "warn"
unwrap_used = "warn"
use_self = "warn"
wildcard_imports = "warn"
3 changes: 1 addition & 2 deletions src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ impl<Action, SectionAction> Actions<Action, SectionAction> {

impl<Action, SectionAction> Actions<Action, SectionAction>
where
Action: From<SectionAction> + Clone,
for<'a> Action: From<&'a SectionAction>,
for<'a> Action: From<&'a SectionAction> + From<SectionAction> + Clone,
{
/// Lookup if there is an action (or section action) for a specific section
/// and key
Expand Down

0 comments on commit 74bbf0f

Please sign in to comment.