Skip to content

Commit

Permalink
Add missing clippy config file
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Feb 7, 2025
1 parent 96839ba commit 15b883c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
too-many-arguments-threshold = 9

# Disallow specific methods from being used
disallowed-methods = [
{ path = "std::net::UdpSocket::bind", reason = "Use solana_net_utils::bind_with_config, bind_to, etc instead for proper socket configuration." },
{ path = "tokio::net::UdpSocket::bind", reason = "Use solana_net_utils::bind_to_async or bind_to_with_config_non_blocking instead for proper socket configuration." },
]

0 comments on commit 15b883c

Please sign in to comment.