Skip to content

[FIX]: clippy lints for redundant parentheses #144

@prajjwalkumar17

Description

@prajjwalkumar17

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

  1. Identify expressions with redundant parentheses.
  2. Remove them while keeping valid logic.
  3. 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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions