From dcad96170e48b5e2ee49c359801c127fbea7506e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 21 Nov 2019 11:27:52 -0800 Subject: [PATCH] Running cargo fmt --- server/src/lib.rs | 4 ++-- server/src/main.rs | 5 ++++- server/src/nodeinfo.rs | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/server/src/lib.rs b/server/src/lib.rs index b5c26762f..bdef086fe 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 8c77199fb..8064e1bc1 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 bbdb65d90..69c86919c 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 {