fmt: fmt and clippy
This commit is contained in:
parent
311029574f
commit
22435465d2
1 changed files with 4 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
use ldap3::{LdapConn, Mod, Scope, SearchEntry};
|
||||
use std::collections::HashSet;
|
||||
|
||||
|
@ -10,8 +9,8 @@ use dotenv::dotenv;
|
|||
use skynet_ldap_server::db_init;
|
||||
use sqlx::{Pool, Sqlite};
|
||||
use std::env;
|
||||
use tide::prelude::*;
|
||||
use tide::{Request, Response};
|
||||
use tide::prelude::{json, Deserialize};
|
||||
use tide::Request;
|
||||
|
||||
#[derive(Clone)]
|
||||
struct State {
|
||||
|
@ -149,6 +148,6 @@ async fn post_update_ldap(mut req: Request<State>) -> tide::Result {
|
|||
ldap.modify(&dn, mods)?.success()?;
|
||||
|
||||
ldap.unbind()?;
|
||||
|
||||
Ok(format!("Hello, {}! I've put in an order for {} shoes", "name", "legs").into())
|
||||
|
||||
Ok(json!({"result": "success"}).into())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue