-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #10471 - Eh2406:credential_process, r=weihanglo
Use types to make clere (credential process || token) `RegistryConfig` represents what credentials we have read from disk. It was a ``` token: Option<String>, credential_process: Option<(PathBuf, Vec<String>)>, ``` with runtime checks that they were not both `Some`. This changes it to be an Enum `None|Token|Process`. There is somewhat more code, but I think this is clearer. This also changed some `Option<String>` arguments to `Option<&str>`.
- Loading branch information
Showing
2 changed files
with
79 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters