aboutsummaryrefslogtreecommitdiff
path: root/aero-user/src
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-05-16 17:38:34 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-05-16 17:38:34 +0200
commit32dfd25f570b7a55bf43752684d286be0f6b2dc2 (patch)
treedd77871cda851bb5795743a3f04be61cf4c3ad61 /aero-user/src
parent6b9542088cd1b66af46e95b787493b601accb495 (diff)
downloadaerogramme-32dfd25f570b7a55bf43752684d286be0f6b2dc2.tar.gz
aerogramme-32dfd25f570b7a55bf43752684d286be0f6b2dc2.zip
format + WIP calendar-query
Diffstat (limited to 'aero-user/src')
-rw-r--r--aero-user/src/config.rs1
-rw-r--r--aero-user/src/login/ldap_provider.rs2
-rw-r--r--aero-user/src/storage/in_memory.rs2
3 files changed, 2 insertions, 3 deletions
diff --git a/aero-user/src/config.rs b/aero-user/src/config.rs
index 44b1239..cea4520 100644
--- a/aero-user/src/config.rs
+++ b/aero-user/src/config.rs
@@ -11,7 +11,6 @@ pub struct CompanionConfig {
pub pid: Option<PathBuf>,
pub imap: ImapUnsecureConfig,
// @FIXME Add DAV
-
#[serde(flatten)]
pub users: LoginStaticConfig,
}
diff --git a/aero-user/src/login/ldap_provider.rs b/aero-user/src/login/ldap_provider.rs
index ca5a356..22b301e 100644
--- a/aero-user/src/login/ldap_provider.rs
+++ b/aero-user/src/login/ldap_provider.rs
@@ -2,9 +2,9 @@ use async_trait::async_trait;
use ldap3::{LdapConnAsync, Scope, SearchEntry};
use log::debug;
+use super::*;
use crate::config::*;
use crate::storage;
-use super::*;
pub struct LdapLoginProvider {
ldap_server: String,
diff --git a/aero-user/src/storage/in_memory.rs b/aero-user/src/storage/in_memory.rs
index 9ef2721..5c8eb26 100644
--- a/aero-user/src/storage/in_memory.rs
+++ b/aero-user/src/storage/in_memory.rs
@@ -2,7 +2,7 @@ use std::collections::BTreeMap;
use std::ops::Bound::{self, Excluded, Included, Unbounded};
use std::sync::RwLock;
-use sodiumoxide::{hex, crypto::hash};
+use sodiumoxide::{crypto::hash, hex};
use tokio::sync::Notify;
use crate::storage::*;