From 12018040bf53fa319ced6fd5835e2efe19b28301 Mon Sep 17 00:00:00 2001 From: Swapnil Tripathi Date: Mon, 13 Nov 2023 15:45:28 +0530 Subject: [PATCH] cleanup for rebase Signed-off-by: Swapnil Tripathi --- libvdrtools/indy-utils/src/crypto/base64/rust_base64.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libvdrtools/indy-utils/src/crypto/base64/rust_base64.rs b/libvdrtools/indy-utils/src/crypto/base64/rust_base64.rs index 204d91fc60..0fa8d77823 100644 --- a/libvdrtools/indy-utils/src/crypto/base64/rust_base64.rs +++ b/libvdrtools/indy-utils/src/crypto/base64/rust_base64.rs @@ -1,8 +1,4 @@ -use base64::{ - alphabet, - engine::{general_purpose, DecodePaddingMode, GeneralPurpose, GeneralPurposeConfig}, - Engine, -}; +use base64::{engine::general_purpose, Engine}; use indy_api_types::errors::prelude::*; /// Default general purpose configuration, but padding decode mode of 'indifferent' (will decode @@ -27,7 +23,7 @@ pub fn encode_urlsafe(doc: &[u8]) -> String { } pub fn decode_urlsafe(doc: &str) -> Result, IndyError> { - URL_SAFE_ANY_PADDING.decode(doc).map_err(|e| { + general_purpose::URL_SAFE.decode(doc).map_err(|e| { e.to_indy( IndyErrorKind::InvalidStructure, "Invalid base64URL_SAFE sequence",