From e1d124c0e389f95baf67603f3264abe52fc1b87d Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 7 Mar 2022 13:34:59 +0000 Subject: [PATCH] fmt --- auth/redis-session/src/main.rs | 3 +-- basics/error-handling/src/main.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/auth/redis-session/src/main.rs b/auth/redis-session/src/main.rs index 1e0fd4c..18c5af4 100644 --- a/auth/redis-session/src/main.rs +++ b/auth/redis-session/src/main.rs @@ -74,9 +74,8 @@ async fn logout(session: Session) -> Result { #[actix_web::main] async fn main() -> std::io::Result<()> { env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); - - log::info!("starting HTTP server at http://localhost:8080"); + log::info!("starting HTTP server at http://localhost:8080"); // Generate a random 32 byte key. Note that it is important to use a unique // private key for every project. Anyone with access to the key can generate diff --git a/basics/error-handling/src/main.rs b/basics/error-handling/src/main.rs index dfe5691..2b7c70d 100644 --- a/basics/error-handling/src/main.rs +++ b/basics/error-handling/src/main.rs @@ -90,9 +90,8 @@ async fn do_something() -> Result { #[actix_web::main] async fn main() -> std::io::Result<()> { env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); - - log::info!("starting HTTP server at http://localhost:8080"); + log::info!("starting HTTP server at http://localhost:8080"); HttpServer::new(move || { App::new().service(web::resource("/something").route(web::get().to(do_something)))