diff options
author | Luca Casonato <hello@lcas.dev> | 2023-10-26 18:39:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 18:39:04 +0200 |
commit | 08b99f39093ef8f0363bf943ab6719ed0f9d7b21 (patch) | |
tree | f8db043351b6bc94a189c5f00ed6f606aa330df5 /cli/auth_tokens.rs | |
parent | 842e29057d6e545c6b498c584a5366fff34f6aa7 (diff) |
chore: update base64 crate (#20877)
Diffstat (limited to 'cli/auth_tokens.rs')
-rw-r--r-- | cli/auth_tokens.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/auth_tokens.rs b/cli/auth_tokens.rs index 6c3ed3846..2e0a4bc37 100644 --- a/cli/auth_tokens.rs +++ b/cli/auth_tokens.rs @@ -1,5 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +use base64::prelude::BASE64_STANDARD; +use base64::Engine; use deno_core::ModuleSpecifier; use log::debug; use log::error; @@ -23,7 +25,7 @@ impl fmt::Display for AuthToken { AuthTokenData::Bearer(token) => write!(f, "Bearer {token}"), AuthTokenData::Basic { username, password } => { let credentials = format!("{username}:{password}"); - write!(f, "Basic {}", base64::encode(credentials)) + write!(f, "Basic {}", BASE64_STANDARD.encode(credentials)) } } } |