Format main.rs
This commit is contained in:
parent
835bce5dcb
commit
1e4cf00730
@ -1,20 +1,19 @@
|
||||
#[macro_use]
|
||||
extern crate rocket;
|
||||
|
||||
use std::str::FromStr;
|
||||
use chrono::NaiveDate;
|
||||
use entity::transaction;
|
||||
use migration::MigratorTrait;
|
||||
use rocket::fairing::{self, AdHoc};
|
||||
use rocket::form::Form;
|
||||
use rocket::response::{Flash, Redirect};
|
||||
use migration::{MigratorTrait};
|
||||
use rocket::{Build, Rocket};
|
||||
use rust_decimal::Decimal;
|
||||
use sea_orm::ActiveValue::Set;
|
||||
use sea_orm::{ActiveModelTrait, ConnectOptions, DatabaseConnection};
|
||||
use sea_orm_rocket::{rocket::figment::Figment, Config, Database, Connection};
|
||||
use sea_orm_rocket::{rocket::figment::Figment, Config, Connection, Database};
|
||||
use std::str::FromStr;
|
||||
use std::time::Duration;
|
||||
use chrono::{NaiveDate};
|
||||
use entity::transaction;
|
||||
use rust_decimal::Decimal;
|
||||
use rocket::{Build, Rocket};
|
||||
use rocket::fairing::{self, AdHoc};
|
||||
|
||||
|
||||
#[derive(sea_orm_rocket::Database, Debug)]
|
||||
#[database("bookkeeper")]
|
||||
@ -50,7 +49,6 @@ impl sea_orm_rocket::Pool for SeaOrmPool {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[get("/")]
|
||||
fn index() -> &'static str {
|
||||
"Hello, world!"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user