Skip to content

Commit

Permalink
Merge branch 'stricter-rustc-linting'
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Apr 2, 2024
2 parents 03be1ea + b283fdf commit ad1ac09
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,17 @@ members = [
# Security
non_ascii_idents = "forbid"

# Modern, easy to read style and opinionated best practices
# Deny old style Rust
rust_2018_idioms = "deny"
macro_use_extern_crate = "deny"
absolute_paths_not_starting_with_crate = "deny"

# Easy to read style and opinionated best practices
explicit_outlives_requirements = "warn"
missing_abi = "deny"
unused_lifetimes = "warn"
unused_macro_rules = "warn"


[workspace.lints.clippy]
unused_async = "deny"
Expand Down
10 changes: 9 additions & 1 deletion test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ members = [
# Security
non_ascii_idents = "forbid"

# Modern, easy to read style and opinionated best practices
# Deny old style Rust
rust_2018_idioms = "deny"
macro_use_extern_crate = "deny"
absolute_paths_not_starting_with_crate = "deny"

# Easy to read style and opinionated best practices
explicit_outlives_requirements = "warn"
missing_abi = "deny"
unused_lifetimes = "warn"
unused_macro_rules = "warn"

[workspace.lints.clippy]
unused_async = "deny"
Expand Down

0 comments on commit ad1ac09

Please sign in to comment.