clean-up: fix most clippy warnings

This commit is contained in:
Lewin Bormann
2022-04-08 23:35:15 -07:00
parent 986bda2465
commit bfe622eaaf
6 changed files with 8 additions and 12 deletions

View File

@@ -2,15 +2,11 @@ use crate::error::Error;
use crate::types::TokenInfo;
/// Provide options for the Application Default Credential Flow, mostly used for testing
#[derive(Default, Clone, Debug)]
pub struct ApplicationDefaultCredentialsFlowOpts {
/// Used as base to build the url during token request from GCP metadata server
pub metadata_url: Option<String>,
}
impl Default for ApplicationDefaultCredentialsFlowOpts {
fn default() -> Self {
Self { metadata_url: None }
}
}
pub struct ApplicationDefaultCredentialsFlow {
metadata_url: String,