Skip to content

Remove duplicate #[cfg(test)] in lib.rs #429

Description

@Levi-Ojukwu

Description:

In contracts/invoice_liquidity/src/lib.rs:29-30, there are two consecutive #[cfg(test)] attributes before mod tests_stress. This is a copy-paste error that doesn't affect functionality but is confusing and could mask issues.

#[cfg(test)]  // line 29
#[cfg(test)]  // line 30 — duplicate
mod tests_stress;

Why it matters: Code quality and maintainability. Duplicate attributes suggest careless editing.

Acceptance Criteria:

  • Remove the duplicate #[cfg(test)] on line 30
  • Verify compilation still passes

Relevant Files: contracts/invoice_liquidity/src/lib.rs:29-30


Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions