mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-17 13:58:29 +00:00
Remove unnecessary prefixes (#10158)
This commit is contained in:
parent
3cb723220e
commit
bec8468183
31 changed files with 124 additions and 175 deletions
|
@ -19,7 +19,7 @@ pub enum KeyringProviderType {
|
|||
// See <https://pip.pypa.io/en/stable/topics/authentication/#keyring-support> for details.
|
||||
|
||||
impl KeyringProviderType {
|
||||
pub fn to_provider(&self) -> Option<uv_auth::KeyringProvider> {
|
||||
pub fn to_provider(&self) -> Option<KeyringProvider> {
|
||||
match self {
|
||||
Self::Disabled => None,
|
||||
Self::Subprocess => Some(KeyringProvider::subprocess()),
|
||||
|
|
|
@ -81,7 +81,7 @@ pub enum TrustedHostError {
|
|||
InvalidPort(String),
|
||||
}
|
||||
|
||||
impl std::str::FromStr for TrustedHost {
|
||||
impl FromStr for TrustedHost {
|
||||
type Err = TrustedHostError;
|
||||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue