Skip to content
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

Refactor clone usage in CLI node folder #1175

Open
wants to merge 2 commits into
base: v6
Choose a base branch
from
Open

Conversation

0xzoz
Copy link
Collaborator

@0xzoz 0xzoz commented Oct 4, 2022

Motivation

This PR is to refactor some .clones as part of the Tool Scrubbers Guild Tasks. It contains 15 instances of .clone() cleanup. Some may not be applicable but would be good material for the Guild meeting. See comments

Test Plan

cargo test

Related PRs

N/A

@0xzoz
Copy link
Collaborator Author

0xzoz commented Oct 4, 2022

First commit Reformat .clone to .to_owned was done due to some research. I found that when trying to use a reference for these EventHandles I couldn't due to not being able to borrow a mutable reference twice. This may be a good discussion point for the guild based on lifetimes. Some resources I found are here and here

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