From 86e10a9858f23749fdfa2bf2621618e375737959 Mon Sep 17 00:00:00 2001
From: Evan Almloff <ealmlof1@stumail.jccc.edu>
Date: Thu, 22 Dec 2022 17:00:55 -0600
Subject: [PATCH] fix some warnings and remove debugging statements

---
 src/server/mod.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/server/mod.rs b/src/server/mod.rs
index 285f19b3e..91a7ad232 100644
--- a/src/server/mod.rs
+++ b/src/server/mod.rs
@@ -114,7 +114,6 @@ pub async fn startup_hot_reload(port: u16, config: CrateConfig) -> Result<()> {
             std::thread::sleep(std::time::Duration::from_millis(100));
             if chrono::Local::now().timestamp() > last_update_time {
                 if let Ok(evt) = evt {
-                    println!("{:?}", evt);
                     let mut messages: Vec<Template<'static>> = Vec::new();
                     for path in evt.paths.clone() {
                         if path.extension().and_then(|p| p.to_str()) != Some("rs") {
@@ -128,7 +127,6 @@ pub async fn startup_hot_reload(port: u16, config: CrateConfig) -> Result<()> {
 
                         match update_rsx(&path, &crate_dir, src, &mut map) {
                             UpdateResult::UpdatedRsx(msgs) => {
-                                println!("{msgs:#?}");
                                 messages.extend(msgs);
                             }
                             UpdateResult::NeedsRebuild => {
@@ -358,7 +356,7 @@ pub async fn startup_default(port: u16, config: CrateConfig) -> Result<()> {
                 Ok(response)
             },
         )
-        .service(ServeDir::new((&config.crate_dir).join(&dist_path)));
+        .service(ServeDir::new(config.crate_dir.join(&dist_path)));
 
     let router = Router::new()
         .route("/_dioxus/ws", get(ws_handler))