From: Dessalines Date: Thu, 21 Nov 2019 19:27:52 +0000 (-0800) Subject: Running cargo fmt X-Git-Url: http://these/git/%22https:/image.com/static/gitweb.js?a=commitdiff_plain;h=dcad96170e48b5e2ee49c359801c127fbea7506e;p=lemmy.git Running cargo fmt --- diff --git a/server/src/lib.rs b/server/src/lib.rs index b5c26762..bdef086f 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -25,10 +25,10 @@ pub extern crate strum; pub mod api; pub mod apub; pub mod db; -pub mod schema; -pub mod websocket; pub mod nodeinfo; +pub mod schema; pub mod version; +pub mod websocket; use chrono::{DateTime, NaiveDateTime, Utc}; use dotenv::dotenv; diff --git a/server/src/main.rs b/server/src/main.rs index 8c77199f..8064e1bc 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -200,7 +200,10 @@ fn main() { // static resources .service(actix_files::Files::new("/static", front_end_dir())) .route("/nodeinfo/2.0.json", web::get().to(nodeinfo::node_info)) - .route("/.well-known/nodeinfo", web::get().to(nodeinfo::node_info_well_known)) + .route( + "/.well-known/nodeinfo", + web::get().to(nodeinfo::node_info_well_known), + ) }) .bind("0.0.0.0:8536") .unwrap() diff --git a/server/src/nodeinfo.rs b/server/src/nodeinfo.rs index bbdb65d9..69c86919 100644 --- a/server/src/nodeinfo.rs +++ b/server/src/nodeinfo.rs @@ -2,8 +2,8 @@ use crate::db::community_view::SiteView; use crate::db::establish_connection; use crate::version; use crate::Settings; -use actix_web::HttpResponse; use actix_web::body::Body; +use actix_web::HttpResponse; use serde_json::json; pub fn node_info_well_known() -> HttpResponse {