refactor: replace macro_use with explicit use declarations
This commit is contained in:
parent
ba1917c9b1
commit
a6c7df0cb0
@ -3,6 +3,9 @@ use ldap3::exop::PasswordModify;
|
||||
use ldap3::result::{LdapError, Result};
|
||||
use rocket_contrib::json::Json;
|
||||
|
||||
use rocket::post;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
|
||||
use crate::config::Config;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
@ -2,6 +2,8 @@ use std::io::BufReader;
|
||||
use std::fs::File;
|
||||
|
||||
use handlebars::Handlebars;
|
||||
use serde_derive::Deserialize;
|
||||
use serde_json::json;
|
||||
|
||||
use crate::exit::exit_with_error;
|
||||
|
||||
|
@ -1,16 +1,12 @@
|
||||
#![feature(proc_macro_hygiene, decl_macro)]
|
||||
|
||||
#[macro_use] extern crate clap;
|
||||
#[macro_use] extern crate rocket;
|
||||
#[macro_use] extern crate serde_derive;
|
||||
#[macro_use] extern crate serde_json;
|
||||
|
||||
mod api;
|
||||
mod config;
|
||||
mod exit;
|
||||
mod r#static;
|
||||
|
||||
use clap::{Arg, App};
|
||||
use clap::{Arg, App, crate_version};
|
||||
use rocket::routes;
|
||||
use rocket::config::{Config, Environment};
|
||||
|
||||
use crate::config::load_config;
|
||||
|
@ -2,6 +2,8 @@ use rocket::http::{ContentType, Status};
|
||||
use rocket::request::Request;
|
||||
use rocket::response::{content, Responder, Response};
|
||||
|
||||
use rocket::get;
|
||||
|
||||
pub struct Svg<R>(pub R);
|
||||
|
||||
impl<'r, R: Responder<'r>> Responder<'r> for Svg<R> {
|
||||
|
Loading…
Reference in New Issue
Block a user