Skip to content

Conversation

strmfos
Copy link

@strmfos strmfos commented Aug 18, 2025

Description
Remove redundant .clone() call when passing opts.datadir to remove_db(). String automatically derefs to &str, making the clone unnecessary and inefficient. This eliminates an unnecessary heap allocation

@strmfos strmfos requested a review from a team as a code owner August 18, 2025 06:28
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