Skip to content

Conversation

@CPunisher
Copy link
Contributor

I'm going to port rspack_resolver in rspack by copying everything from rspack_resolver/napi.

So it will be more convenient if there's no clippy warnings.

@CPunisher CPunisher requested review from Copilot and stormslowly July 29, 2025 03:42
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 fixes clippy warnings to prepare for porting rspack_resolver code by addressing trait implementation patterns and style issues.

  • Replaced Into trait implementations with preferred From trait implementations
  • Fixed formatting issues in panic messages and function calls
  • Added clippy allow attributes for unavoidable warnings

Reviewed Changes

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

File Description
napi/src/options.rs Converted Into trait implementations to From implementations and improved error message formatting
napi/src/lib.rs Fixed closure syntax and added clippy allow attribute for default method

CPunisher and others added 2 commits July 29, 2025 11:47
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 29, 2025

CodSpeed Performance Report

Merging #88 will not alter performance

Comparing CPunisher:07-29-chore/napi-clippy (6a3a93b) with main (aefec82)

Summary

✅ 5 untouched benchmarks

@CPunisher CPunisher merged commit 306066d into web-infra-dev:main Jul 29, 2025
18 checks passed
@CPunisher CPunisher deleted the 07-29-chore/napi-clippy branch July 29, 2025 03:53
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.

2 participants