@@ -58,7 +58,7 @@ pub fn registry_credential_config(
58
58
secret_key_subject,
59
59
..
60
60
} = config. get :: < RegistryConfig > ( "registry" ) ?;
61
- return registry_credential_config_iner (
61
+ return registry_credential_config_inner (
62
62
true ,
63
63
None ,
64
64
token,
@@ -149,7 +149,7 @@ pub fn registry_credential_config(
149
149
( None , None , None , None )
150
150
} ;
151
151
152
- registry_credential_config_iner (
152
+ registry_credential_config_inner (
153
153
false ,
154
154
name. as_deref ( ) ,
155
155
token,
@@ -160,7 +160,7 @@ pub fn registry_credential_config(
160
160
)
161
161
}
162
162
163
- fn registry_credential_config_iner (
163
+ fn registry_credential_config_inner (
164
164
is_crates_io : bool ,
165
165
name : Option < & str > ,
166
166
token : Option < String > ,
@@ -181,8 +181,8 @@ fn registry_credential_config_iner(
181
181
} ;
182
182
Err ( format_err ! (
183
183
"both `{token_key}` and `{proc_key}` \
184
- were specified in the config{registry}.\n \
185
- Only one of these values may be set, remove one or the other to proceed.",
184
+ were specified in the config{registry}.\n \
185
+ Only one of these values may be set, remove one or the other to proceed.",
186
186
) )
187
187
} ;
188
188
Ok (
@@ -198,7 +198,7 @@ fn registry_credential_config_iner(
198
198
} ;
199
199
return Err ( format_err ! (
200
200
"`secret-key-subject` was set but `secret-key` was not in the config{}.\n \
201
- Ether set the `secret-key` or remove the `secret-key-subject`.",
201
+ Either set the `secret-key` or remove the `secret-key-subject`.",
202
202
registry
203
203
) ) ;
204
204
}
@@ -490,7 +490,7 @@ pub fn login(config: &Config, sid: &SourceId, token: RegistryCredentialConfig) -
490
490
RegistryCredentialConfig :: Process ( process) => {
491
491
let token = token
492
492
. as_token ( )
493
- . expect ( "credential_process can not use login with a secret_key" )
493
+ . expect ( "credential_process cannot use login with a secret_key" )
494
494
. to_owned ( ) ;
495
495
run_command ( config, & process, sid, Action :: Store ( token) ) ?;
496
496
}
0 commit comments