Skip to content

fix: removed redundant to_owned() call #2567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xwitty
Copy link

@0xwitty 0xwitty commented Apr 24, 2025

Motivation
While reviewing the code, I noticed a redundant to_owned() call that could be simplified to improve efficiency and clarity.

Description
The same to_owned() method was being called twice on the same value.
Removed the extra call to avoid unnecessary allocation.

@0xwitty 0xwitty requested a review from a team as a code owner April 24, 2025 10:05
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.

1 participant