summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/credential/cargo-credential/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/credential/cargo-credential/examples')
-rw-r--r--src/tools/cargo/credential/cargo-credential/examples/file-provider.rs4
-rw-r--r--src/tools/cargo/credential/cargo-credential/examples/stdout-redirected.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/cargo/credential/cargo-credential/examples/file-provider.rs b/src/tools/cargo/credential/cargo-credential/examples/file-provider.rs
index d11958536..3ed312cb8 100644
--- a/src/tools/cargo/credential/cargo-credential/examples/file-provider.rs
+++ b/src/tools/cargo/credential/cargo-credential/examples/file-provider.rs
@@ -12,8 +12,8 @@ struct FileCredential;
impl Credential for FileCredential {
fn perform(
&self,
- registry: &RegistryInfo,
- action: &Action,
+ registry: &RegistryInfo<'_>,
+ action: &Action<'_>,
_args: &[&str],
) -> Result<CredentialResponse, cargo_credential::Error> {
if registry.index_url != "https://github.com/rust-lang/crates.io-index" {
diff --git a/src/tools/cargo/credential/cargo-credential/examples/stdout-redirected.rs b/src/tools/cargo/credential/cargo-credential/examples/stdout-redirected.rs
index 0b9bcc2f7..75a2d16d1 100644
--- a/src/tools/cargo/credential/cargo-credential/examples/stdout-redirected.rs
+++ b/src/tools/cargo/credential/cargo-credential/examples/stdout-redirected.rs
@@ -7,8 +7,8 @@ struct MyCredential;
impl Credential for MyCredential {
fn perform(
&self,
- _registry: &RegistryInfo,
- _action: &Action,
+ _registry: &RegistryInfo<'_>,
+ _action: &Action<'_>,
_args: &[&str],
) -> Result<CredentialResponse, Error> {
// Informational messages should be sent on stderr.