Update base64 to 0.20

This commit is contained in:
austaras
2022-12-17 15:34:11 +08:00
committed by Sean McArthur
parent 5656fb8616
commit e8a733a26e
3 changed files with 3 additions and 3 deletions

View File

@@ -253,7 +253,7 @@ impl RequestBuilder {
{
let mut header_value = b"Basic ".to_vec();
{
let mut encoder = Base64Encoder::new(&mut header_value, base64::STANDARD);
let mut encoder = Base64Encoder::from(&mut header_value, &base64::engine::DEFAULT_ENGINE);
// The unwraps here are fine because Vec::write* is infallible.
write!(encoder, "{}:", username).unwrap();
if let Some(password) = password {