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

feat: now determines subdir #145

Merged
merged 6 commits into from
Apr 3, 2023
Merged

feat: now determines subdir #145

merged 6 commits into from
Apr 3, 2023

Conversation

tdejager
Copy link
Collaborator

@tdejager tdejager commented Apr 1, 2023

Uses platform and architecture and values that were found in the production database.

tdejager added 3 commits April 1, 2023 14:08
Uses platform and architecture and values that were found
in the production database
) -> Result<String, ConvertSubdirError> {
let platform = platform.ok_or(ConvertSubdirError::PlatformEmpty)?;
let arch = arch.ok_or(ConvertSubdirError::ArchEmpty)?;
let canonical = format!("{platform}-{arch}");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of first converting to string I would just match on (platform, arch).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it!

@wolfv wolfv merged commit bd4229f into main Apr 3, 2023
@wolfv wolfv deleted the feat/determine-subdir-from-index branch April 3, 2023 07:47
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