Skip to content

Comments

Break choose_version into three methods#4543

Merged
konstin merged 1 commit intomainfrom
konsti/choose-version-refactoring
Jun 26, 2024
Merged

Break choose_version into three methods#4543
konstin merged 1 commit intomainfrom
konsti/choose-version-refactoring

Conversation

@konstin
Copy link
Member

@konstin konstin commented Jun 26, 2024

ResolverState::choose_version had become huge, with an odd match due to the url handling from #4435. This refactoring breaks it into choose_version, choose_version_registry and choose_version_url. No functional changes.

`ResolverState::choose_version` had become huge, with an odd match due to the url handling from #4435. This refactoring breaks it into `choose_version`, `choose_version_registry` and `choose_version_url`. No functional changes.
@konstin konstin added the internal A refactor or improvement that is not user-facing label Jun 26, 2024
}
}

let dist = PubGrubDistribution::from_url(name, url);
Copy link
Member Author

Choose a reason for hiding this comment

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

@konstin konstin merged commit b677a06 into main Jun 26, 2024
@konstin konstin deleted the konsti/choose-version-refactoring branch June 26, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants