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

Add #[allow(dead_code)] attribute to unused variables #1082

Closed
wants to merge 1 commit into from
Closed

Add #[allow(dead_code)] attribute to unused variables #1082

wants to merge 1 commit into from

Conversation

ken-matsui
Copy link
Contributor

I would suggest deleting these variables unless you think they will be used.
If you would so, I would be pleased to remove them in this PR.

@ken-matsui
Copy link
Contributor Author

This PR conflicts with #1087.
I would suggest merging either @orhun's or mine.

@orhun
Copy link
Contributor

orhun commented Feb 22, 2022

Ah I totally missed that this PR already exists :/

@ken-matsui
Copy link
Contributor Author

Never mind :)

@jaeheonji
Copy link
Member

In my opinion, removing the code looks better than putting a dead_code attr.
If dead_code is used, there is a possibility that it will be left unattended and no one will care.

Perhaps, these variables are currently unused, but they need to be verified once more.
So, I'll check it out too! and It would be better to work on #1087.

@ken-matsui
Copy link
Contributor Author

Thanks for your opinion. I close this PR, so any changes should be continued on #1087.

@ken-matsui ken-matsui closed this Feb 23, 2022
@ken-matsui ken-matsui deleted the add-allow-deadcode-attribute-to-unused-variables branch February 23, 2022 20:21
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.

3 participants