From 05a3acc9e1803fcb57b1e40950621240afe0ac75 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 29 Oct 2019 22:53:00 +0100 Subject: [PATCH] Fix Error trait object dyn warnings --- src/ldap.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ldap.rs b/src/ldap.rs index b93d878b..45982fcd 100644 --- a/src/ldap.rs +++ b/src/ldap.rs @@ -28,7 +28,7 @@ pub fn launch_ldap_connector() { } /// Invite all LDAP users to Bitwarden -fn sync_from_ldap(conn: &DbConn) -> Result<(), Box> { +fn sync_from_ldap(conn: &DbConn) -> Result<(), Box> { let existing_users = get_existing_users(&conn).expect("Error: Failed to get existing users from Bitwarden"); let mut num_users = 0; let mut ldap_emails = HashSet::new(); @@ -74,7 +74,7 @@ fn sync_from_ldap(conn: &DbConn) -> Result<(), Box> { } /// Retrieves search results from ldap -fn search_entries() -> Result, Box> { +fn search_entries() -> Result, Box> { let ldap = LdapConn::new(CONFIG.ldap_host().as_str())?; ldap.simple_bind(CONFIG.ldap_bind_dn().as_str(), CONFIG.ldap_bind_password().as_str())?; @@ -101,7 +101,7 @@ fn search_entries() -> Result, Box> { } /// Creates set of email addresses for users that already exist in Bitwarden -fn get_existing_users(conn: &DbConn) -> Result, Box> { +fn get_existing_users(conn: &DbConn) -> Result, Box> { let all_users = User::get_all(conn); let mut user_emails = HashSet::with_capacity(all_users.len());