Dont use "pub extern crate"

This commit is contained in:
Felix Ableitner 2020-09-03 16:17:03 +02:00
parent 17df0ee6b3
commit 0a86c0934c
6 changed files with 48 additions and 49 deletions

View file

@ -1,5 +1,5 @@
pub extern crate serde;
pub extern crate thiserror;
extern crate serde;
extern crate thiserror;
pub mod comment;
pub mod community;

View file

@ -1,17 +1,17 @@
#[macro_use]
pub extern crate diesel;
extern crate diesel;
#[macro_use]
pub extern crate strum_macros;
extern crate strum_macros;
#[macro_use]
pub extern crate lazy_static;
pub extern crate bcrypt;
pub extern crate chrono;
pub extern crate log;
pub extern crate regex;
pub extern crate serde;
pub extern crate serde_json;
pub extern crate sha2;
pub extern crate strum;
extern crate lazy_static;
extern crate bcrypt;
extern crate chrono;
extern crate log;
extern crate regex;
extern crate serde;
extern crate serde_json;
extern crate sha2;
extern crate strum;
use chrono::NaiveDateTime;
use diesel::{result::Error, *};

View file

@ -1,9 +1,9 @@
#[macro_use]
pub extern crate strum_macros;
pub extern crate actix_web;
pub extern crate futures;
pub extern crate log;
pub extern crate tokio;
extern crate strum_macros;
extern crate actix_web;
extern crate futures;
extern crate log;
extern crate tokio;
use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform};
use futures::future::{ok, Ready};

View file

@ -1,15 +1,15 @@
#[macro_use]
pub extern crate lazy_static;
pub extern crate actix_web;
pub extern crate anyhow;
pub extern crate comrak;
pub extern crate lettre;
pub extern crate lettre_email;
pub extern crate openssl;
pub extern crate rand;
pub extern crate regex;
pub extern crate serde_json;
pub extern crate url;
extern crate lazy_static;
extern crate actix_web;
extern crate anyhow;
extern crate comrak;
extern crate lettre;
extern crate lettre_email;
extern crate openssl;
extern crate rand;
extern crate regex;
extern crate serde_json;
extern crate url;
pub mod settings;

View file

@ -1,25 +1,25 @@
#![recursion_limit = "512"]
#[macro_use]
pub extern crate strum_macros;
extern crate strum_macros;
#[macro_use]
pub extern crate lazy_static;
pub extern crate actix;
pub extern crate actix_web;
pub extern crate base64;
pub extern crate bcrypt;
pub extern crate captcha;
pub extern crate chrono;
pub extern crate diesel;
pub extern crate dotenv;
pub extern crate jsonwebtoken;
extern crate lazy_static;
extern crate actix;
extern crate actix_web;
extern crate base64;
extern crate bcrypt;
extern crate captcha;
extern crate chrono;
extern crate diesel;
extern crate dotenv;
extern crate jsonwebtoken;
extern crate log;
pub extern crate openssl;
pub extern crate reqwest;
pub extern crate rss;
pub extern crate serde;
pub extern crate serde_json;
pub extern crate sha2;
pub extern crate strum;
extern crate openssl;
extern crate reqwest;
extern crate rss;
extern crate serde;
extern crate serde_json;
extern crate sha2;
extern crate strum;
pub mod api;
pub mod apub;

View file

@ -1,7 +1,5 @@
#[macro_use]
extern crate diesel_migrations;
#[macro_use]
pub extern crate lazy_static;
use actix::prelude::*;
use actix_web::{
@ -17,6 +15,7 @@ use diesel::{
r2d2::{ConnectionManager, Pool},
PgConnection,
};
use lazy_static::lazy_static;
use lemmy_db::get_database_url_from_env;
use lemmy_rate_limit::{rate_limiter::RateLimiter, RateLimit};
use lemmy_server::{