nicer indentation
This commit is contained in:
parent
252c69d5b2
commit
591fd66786
14
src/main.rs
14
src/main.rs
|
@ -9,23 +9,21 @@ use rocket::form::{Form, FromForm};
|
|||
use rocket::http::{ContentType, Header};
|
||||
use rocket::response::status::NoContent;
|
||||
use rocket::response::{Debug, Redirect, Responder};
|
||||
use rocket::{get, post, routes, uri, Build, Rocket, State};
|
||||
use rocket::{get, post, routes, uri, State};
|
||||
use serde::Deserialize;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[rocket::launch]
|
||||
fn rocket() -> Rocket<Build> {
|
||||
rocket::build()
|
||||
.manage(
|
||||
Client::builder()
|
||||
fn rocket() -> _ {
|
||||
let client = Client::builder()
|
||||
.user_agent(format!(
|
||||
"emojos.in/{} (+https://github.com/iliana/emojos.in)",
|
||||
env!("CARGO_PKG_VERSION")
|
||||
))
|
||||
.build()
|
||||
.unwrap(),
|
||||
)
|
||||
.mount(
|
||||
.unwrap();
|
||||
|
||||
rocket::build().manage(client).mount(
|
||||
"/",
|
||||
routes![
|
||||
code,
|
||||
|
|
Loading…
Reference in New Issue