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",