-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
good first issueGood for newcomersGood for newcomershacktoberfestIssues that are opened for hactoberfestIssues that are opened for hactoberfest
Description
Summary
Extra parentheses reduce readability and add noise.
Type
style
Context
Parentheses should only be used when required. Extra ones around generics, return values, or conditions clutter the code.
Starter tasks
- Identify expressions with redundant parentheses.
- Remove them while keeping valid logic.
- Verify code compiles and passes tests.
Implementation hints
- Run
cargo clippy -- -W clippy::unnecessary_parentheses
. - If this runs fine proceed with normal
cargo clippy
command, and do fuzzy search for parentheses. - Common offenders:
Ok((result))
→Ok(result)
.
Acceptance criteria
- Redundant parentheses removed.
- No
unnecessary_parentheses
warnings remain.
Clippy Command
cargo clippy -- -W clippy::unnecessary_parentheses
Contribution Guidelines:
- Fork the repository and create a new branch for your work.
- Write clean, well-documented code with clear commit messages.
- Make sure to follow our coding standards and contribution guidelines.
Submission Process:
- Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself.
- Once assigned, submit a pull request (PR).
- Maintainers will review and provide feedback, if any.
- Maintainers can unassign issues due to inactivity, read more here.
- For this issue, please submit a PR on @juspay/deicision-engine repo, and link it to the issue.
Refer here for Terms and conditions for the contest.
If you have any questions or need help getting started, feel free to ask in the comments!
Mentor contact
@prajjwalkumar17 @Sarthak1799 @GauravRawat369
Pre-flight
- I read the Contributing Guide and setup
- I searched existing issues and PRs
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershacktoberfestIssues that are opened for hactoberfestIssues that are opened for hactoberfest