aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-19 12:14:06 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-19 12:14:06 +0200
commit4bc3f70e287379991eb6e31a2a075752e85958b7 (patch)
tree2dda8223f3d22c6041ef014e2729ebfc9512c6f8 /src/main.rs
parentc7f767b7d2877cdbbc06893c9cd0fae2c56b96f2 (diff)
downloadaerogramme-4bc3f70e287379991eb6e31a2a075752e85958b7.tar.gz
aerogramme-4bc3f70e287379991eb6e31a2a075752e85958b7.zip
cleanup
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/main.rs b/src/main.rs
index cf1e886..16eafc4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,22 +2,17 @@ mod bayou;
mod config;
mod cryptoblob;
mod login;
+mod mailbox;
mod time;
mod uidindex;
-mod mailbox;
use anyhow::{bail, Result};
use std::sync::Arc;
-use rand::prelude::*;
-use rusoto_credential::{EnvironmentProvider, ProvideAwsCredentials};
use rusoto_signature::Region;
-use bayou::*;
use config::*;
-use cryptoblob::Key;
use login::{ldap_provider::*, static_provider::*, *};
-use uidindex::*;
use mailbox::Mailbox;
#[tokio::main]
@@ -68,10 +63,13 @@ impl Main {
async fn run(self: &Arc<Self>) -> Result<()> {
let creds = self.login_provider.login("lx", "plop").await?;
- let mut mailbox = Mailbox::new(self.k2v_region.clone(),
- self.s3_region.clone(),
- creds.clone(),
- "TestMailbox".to_string()).await?;
+ let mut mailbox = Mailbox::new(
+ self.k2v_region.clone(),
+ self.s3_region.clone(),
+ creds.clone(),
+ "TestMailbox".to_string(),
+ )
+ .await?;
mailbox.test().await?;