Skip to content

Commit

Permalink
avoid polluting import space and use big names in one place
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Oct 12, 2023
1 parent f8330e5 commit fbf15a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kube-client/src/client/auth/oidc.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::collections::HashMap;

use base64::{alphabet, engine, Engine as _};
use chrono::{Duration, TimeZone, Utc};
use form_urlencoded::Serializer;
use http::{
Expand Down Expand Up @@ -131,11 +130,12 @@ pub mod errors {
}
}

const JWT_BASE64_ENGINE: engine::GeneralPurpose = engine::GeneralPurpose::new(
&alphabet::URL_SAFE,
engine::GeneralPurposeConfig::new()
use base64::Engine as _;
const JWT_BASE64_ENGINE: base64::engine::GeneralPurpose = base64::engine::GeneralPurpose::new(
&base64::alphabet::URL_SAFE,
base64::engine::GeneralPurposeConfig::new()
.with_decode_allow_trailing_bits(true)
.with_decode_padding_mode(engine::DecodePaddingMode::Indifferent),
.with_decode_padding_mode(base64::engine::DecodePaddingMode::Indifferent),
);
use base64::engine::general_purpose::STANDARD as STANDARD_BASE64_ENGINE;

Expand Down

0 comments on commit fbf15a3

Please sign in to comment.