Skip to content

Extract licenses module #7199

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

Merged
merged 2 commits into from
Sep 28, 2023
Merged

Extract licenses module #7199

merged 2 commits into from
Sep 28, 2023

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Sep 27, 2023

This PR moves the license expression parsing code out of models::version into a dedicated module. In the second commit the API is slightly simplified and the conversion from regular error to app-specific error wrapper is moved into the route handler that calls the fn.

The main purpose of this wrapper fn is to apply our custom `ParseMode`. The conversion to an `AppError` should be done in the route handler code though.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Sep 27, 2023
@Turbo87 Turbo87 merged commit d1f21e6 into rust-lang:main Sep 28, 2023
@Turbo87 Turbo87 deleted the licenses branch September 28, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant