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: extract UNINSTALLED_PACKAGES_FILE_NAME_FORMAT into a const #799

Merged

Conversation

adhirajsinghchauhan
Copy link
Contributor

Continuation of #796. Needs testing, I can't because of this.

@adhirajsinghchauhan adhirajsinghchauhan added the refactor Rework of code — behaviour doesn't change label Jan 16, 2025
@adhirajsinghchauhan
Copy link
Contributor Author

adhirajsinghchauhan commented Jan 16, 2025

Ah, I forgot, Rust has strict rules about macro parameters — in this case, it's for safety against incorrect argument types/count. What would work in other languages, will not in Rust (even though other languages also have similar protections via lint).

We have two options, then, use a simple + operator, or use the concat macro. Either of those will fix test failures and get us the result we want. I leave it up to others to choose.

@AnonymousWP AnonymousWP requested a review from a team January 16, 2025 11:57
AnonymousWP

This comment was marked as resolved.

@Rudxain

This comment was marked as resolved.

@Rudxain Rudxain dismissed AnonymousWP’s stale review January 16, 2025 22:06

I've fixed the compilation error

@Rudxain Rudxain merged commit 0cff895 into main Jan 16, 2025
18 checks passed
@Rudxain Rudxain deleted the refactor/extract-uninstalled_packages_file_name_format-into-const branch January 16, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Rework of code — behaviour doesn't change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants