Skip to content

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Add clippy lint attributes to deny panic-causing lints in Fortuna

Description

This PR adds Clippy lint attributes to the Fortuna codebase to warn about any Clippy lint rules that guard against panics. These lint rules are configured to apply to the default target but not to tests.

The following panic-related lints are configured:

  • expect_used: Warns on usage of .expect() which can panic
  • unwrap_used: Warns on usage of .unwrap() which can panic
  • panic: Warns on usage of panic!() macro
  • unimplemented: Warns on usage of unimplemented!() macro
  • unreachable: Warns on usage of unreachable!() macro
  • indexing_slicing: Warns on indexing/slicing operations that can panic
  • panic_in_result_fn: Warns on panicking in functions that return Result
  • todo: Warns on usage of todo!() macro

These lints will help prevent introducing new code that could panic in production environments, while still allowing these constructs in test code.

Testing

  • Verified locally with cargo check
  • Verified Fortuna codebase still compiles

Requested by: Jayant Krishnamurthy

Link to Devin run: https://app.devin.ai/sessions/da25c6851cda4d17949abae63093a4e0

@vercel
Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 6:05pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 6:05pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 6:05pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 6:05pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 6:05pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 6:05pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2025 6:05pm

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: Jayant Krishnamurthy <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

Closing due to inactivity for more than 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant