diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-08 15:23:50 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-12-08 15:23:50 +0100 |
commit | cf18eb8afb76a25150c885c6cf525aedcc25facc (patch) | |
tree | 4a36c487cbc83ce8cc989e62d43531554de1a65b /src/config.rs | |
parent | 3ddbce4529225fe004acde3ab2e95261673bafc3 (diff) | |
download | aerogramme-cf18eb8afb76a25150c885c6cf525aedcc25facc.tar.gz aerogramme-cf18eb8afb76a25150c885c6cf525aedcc25facc.zip |
now compile again
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs index 5bd7380..85d38aa 100644 --- a/src/config.rs +++ b/src/config.rs @@ -79,8 +79,6 @@ pub struct LoginLdapConfig { pub username_attr: String, #[serde(default = "default_mail_attr")] pub mail_attr: String, - pub user_secret_attr: String, - pub alternate_user_secrets_attr: Option<String>, // Storage related thing #[serde(flatten)] @@ -140,7 +138,7 @@ pub enum AnyConfig { } // --- -pub fn read_config<'a, T: Deserialize<'a>>(config_file: PathBuf) -> Result<T> { +pub fn read_config<T: serde::de::DeserializeOwned>(config_file: PathBuf) -> Result<T> { let mut file = std::fs::OpenOptions::new() .read(true) .open(config_file.as_path())?; |