]> Untitled Git - lemmy.git/commitdiff
Running cargo fmt
authorDessalines <tyhou13@gmx.com>
Thu, 21 Nov 2019 19:27:52 +0000 (11:27 -0800)
committerDessalines <tyhou13@gmx.com>
Thu, 21 Nov 2019 19:27:52 +0000 (11:27 -0800)
server/src/lib.rs
server/src/main.rs
server/src/nodeinfo.rs

index b5c26762f7aaa620a51e694293a1b00454169f4e..bdef086fe1a8af3d762dfc2ab02ee1d7a0b18bfa 100644 (file)
@@ -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;
index 8c77199fb37ff429ab097e307a50f3a329146277..8064e1bc1af9cb1f1bee5838c28cae2f0e6dc3e2 100644 (file)
@@ -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()
index bbdb65d903b0fff3528a79631e1fe34164c7eb8d..69c86919ce93125c2c11bb00edd432f53ce0299d 100644 (file)
@@ -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<Body> {