Skip to content

Conversation

@squadgazzz
Copy link
Contributor

This PR fixes clippy warnings due to the latest update.
Failed CI: https://github.com/cowprotocol/services/actions/runs/20142706161/job/57814513611?pr=3973

Copilot AI review requested due to automatic review settings December 11, 2025 19:06
@squadgazzz squadgazzz requested a review from a team as a code owner December 11, 2025 19:06
@squadgazzz squadgazzz changed the title Fix clippy warnings [TRIVIAL] Fix clippy warnings Dec 11, 2025
@squadgazzz squadgazzz enabled auto-merge December 11, 2025 19:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses clippy warnings introduced by a recent Rust/Clippy update by removing unnecessary cloning and improving error message informativeness.

  • Removed redundant .cloned() call in iterator chain where the called method only needs a reference
  • Enhanced error message to include the fee amount value that was previously not displayed

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/shared/src/trade_finding/mod.rs Removed unnecessary .cloned() in map_interactions_data since to_interaction_data() only requires a reference
crates/shared/src/order_quoting.rs Added fee_amount field to error message format string to display the actual fee value in errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@squadgazzz squadgazzz added this pull request to the merge queue Dec 12, 2025
Merged via the queue into main with commit a18d1d9 Dec 12, 2025
18 checks passed
@squadgazzz squadgazzz deleted the fix-compilation branch December 12, 2025 07:27
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants