mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-22 18:15:28 +01:00
clean-up: fix most clippy warnings
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user