Skip to content

Commit cd96709

Browse files
committed
Indentation and spelling
1 parent 6b83b3d commit cd96709

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ impl RegistryBuilder {
328328
&credentials,
329329
format!(
330330
r#"
331-
[registries.{alternative}]
332-
token = "{token}"
333-
"#
331+
[registries.{alternative}]
332+
token = "{token}"
333+
"#
334334
)
335335
.as_bytes(),
336336
)
@@ -340,9 +340,9 @@ impl RegistryBuilder {
340340
&credentials,
341341
format!(
342342
r#"
343-
[registry]
344-
token = "{token}"
345-
"#
343+
[registry]
344+
token = "{token}"
345+
"#
346346
)
347347
.as_bytes(),
348348
)

src/cargo/util/auth.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn registry_credential_config(
5858
secret_key_subject,
5959
..
6060
} = config.get::<RegistryConfig>("registry")?;
61-
return registry_credential_config_iner(
61+
return registry_credential_config_inner(
6262
true,
6363
None,
6464
token,
@@ -149,7 +149,7 @@ pub fn registry_credential_config(
149149
(None, None, None, None)
150150
};
151151

152-
registry_credential_config_iner(
152+
registry_credential_config_inner(
153153
false,
154154
name.as_deref(),
155155
token,
@@ -160,7 +160,7 @@ pub fn registry_credential_config(
160160
)
161161
}
162162

163-
fn registry_credential_config_iner(
163+
fn registry_credential_config_inner(
164164
is_crates_io: bool,
165165
name: Option<&str>,
166166
token: Option<String>,
@@ -181,8 +181,8 @@ fn registry_credential_config_iner(
181181
};
182182
Err(format_err!(
183183
"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.",
186186
))
187187
};
188188
Ok(
@@ -198,7 +198,7 @@ fn registry_credential_config_iner(
198198
};
199199
return Err(format_err!(
200200
"`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`.",
202202
registry
203203
));
204204
}
@@ -490,7 +490,7 @@ pub fn login(config: &Config, sid: &SourceId, token: RegistryCredentialConfig) -
490490
RegistryCredentialConfig::Process(process) => {
491491
let token = token
492492
.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")
494494
.to_owned();
495495
run_command(config, &process, sid, Action::Store(token))?;
496496
}

0 commit comments

Comments
 (0)