optimize imports

This commit is contained in:
0xf8 2023-06-21 18:16:02 -04:00
parent c865c09649
commit 8acb9a201d
Signed by: 0xf8
GPG Key ID: 446580D758689584
6 changed files with 19 additions and 24 deletions

View File

@ -9,13 +9,12 @@
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
pub use log::{info, log, warn}; use log::debug;
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
pub use yggdrasil::*; use yggdrasil::*;
pub fn nest(db: Database) -> tide::Server<Database> { pub fn nest(db: Database) -> tide::Server<Database> {
info!("Loading nest"); debug!("Loading nest");
let mut nest = tide::with_state(db.to_owned()); let mut nest = tide::with_state(db.to_owned());

View File

@ -9,13 +9,12 @@
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
pub use log::{info, log, warn}; use log::debug;
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
pub use yggdrasil::*; use yggdrasil::*;
pub fn nest(db: Database) -> tide::Server<Database> { pub fn nest(db: Database) -> tide::Server<Database> {
info!("Loading nest"); debug!("Loading nest");
let mut nest = tide::with_state(db.to_owned()); let mut nest = tide::with_state(db.to_owned());

View File

@ -9,10 +9,9 @@
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
pub use log::{info, log, warn}; use log::debug;
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
pub use yggdrasil::*; use yggdrasil::*;
mod authenticate; mod authenticate;
mod invalidate; mod invalidate;
@ -21,7 +20,7 @@ mod signout;
mod validate; mod validate;
pub fn nest(db: Database) -> tide::Server<Database> { pub fn nest(db: Database) -> tide::Server<Database> {
info!("Loading nest"); debug!("Loading nest");
let mut nest = tide::with_state(db); let mut nest = tide::with_state(db);
nest.at("authenticate").post(authenticate::authenticate); nest.at("authenticate").post(authenticate::authenticate);

View File

@ -9,13 +9,13 @@
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
pub use log::{info, log, warn}; use log::debug;
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After}; use tide::{prelude::*, Request, Result};
pub use yggdrasil::*; use yggdrasil::*;
pub fn nest(db: Database) -> tide::Server<Database> { pub fn nest(db: Database) -> tide::Server<Database> {
info!("Loading nest"); debug!("Loading nest");
let mut nest = tide::with_state(db.to_owned()); let mut nest = tide::with_state(db.to_owned());

View File

@ -10,17 +10,16 @@
*/ */
pub use log::{info, log, warn}; use log::debug;
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
pub use yggdrasil::*; use yggdrasil::*;
mod profile; mod profile;
mod skin; mod skin;
mod cape; mod cape;
pub fn nest(db: Database) -> tide::Server<Database> { pub fn nest(db: Database) -> tide::Server<Database> {
info!("Loading nest"); debug!("Loading nest");
let mut nest = tide::with_state(db); let mut nest = tide::with_state(db);

View File

@ -9,17 +9,16 @@
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
pub use log::{info, log, warn}; use log::debug;
pub use tide::{Middleware, prelude::*, Request, Response, Result, utils::After};
pub use yggdrasil::*; use yggdrasil::*;
mod has_joined; mod has_joined;
mod join; mod join;
mod profile; mod profile;
pub fn nest(db: Database) -> tide::Server<Database> { pub fn nest(db: Database) -> tide::Server<Database> {
info!("Loading nest"); debug!("Loading nest");
let mut nest = tide::with_state(db.to_owned()); let mut nest = tide::with_state(db.to_owned());