fix: udeps (#2215)

This commit is contained in:
DaniPopes 2023-03-01 02:25:25 +01:00 committed by GitHub
parent da743fc8b2
commit fbf8acb6a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -279,19 +279,12 @@ impl super::Signer for AwsSigner {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*;
use crate::Signer;
use rusoto_core::{ use rusoto_core::{
credential::{EnvironmentProvider, StaticProvider}, credential::{EnvironmentProvider, StaticProvider},
Client, HttpClient, Region, Client, HttpClient, Region,
}; };
use tracing::metadata::LevelFilter;
use super::*;
use crate::Signer;
#[allow(dead_code)]
fn setup_tracing() {
tracing_subscriber::fmt().with_max_level(LevelFilter::DEBUG).try_init().unwrap();
}
#[allow(dead_code)] #[allow(dead_code)]
fn static_client() -> KmsClient { fn static_client() -> KmsClient {
@ -318,7 +311,6 @@ mod tests {
Ok(id) => id, Ok(id) => id,
_ => return, _ => return,
}; };
setup_tracing();
let client = env_client(); let client = env_client();
let signer = AwsSigner::new(client, key_id, chain_id).await.unwrap(); let signer = AwsSigner::new(client, key_id, chain_id).await.unwrap();