mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-18 00:23:07 +00:00
fix some warnings and remove debugging statements
This commit is contained in:
parent
ef6ae642ba
commit
86e10a9858
1 changed files with 1 additions and 3 deletions
|
@ -114,7 +114,6 @@ pub async fn startup_hot_reload(port: u16, config: CrateConfig) -> Result<()> {
|
||||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||||
if chrono::Local::now().timestamp() > last_update_time {
|
if chrono::Local::now().timestamp() > last_update_time {
|
||||||
if let Ok(evt) = evt {
|
if let Ok(evt) = evt {
|
||||||
println!("{:?}", evt);
|
|
||||||
let mut messages: Vec<Template<'static>> = Vec::new();
|
let mut messages: Vec<Template<'static>> = Vec::new();
|
||||||
for path in evt.paths.clone() {
|
for path in evt.paths.clone() {
|
||||||
if path.extension().and_then(|p| p.to_str()) != Some("rs") {
|
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) {
|
match update_rsx(&path, &crate_dir, src, &mut map) {
|
||||||
UpdateResult::UpdatedRsx(msgs) => {
|
UpdateResult::UpdatedRsx(msgs) => {
|
||||||
println!("{msgs:#?}");
|
|
||||||
messages.extend(msgs);
|
messages.extend(msgs);
|
||||||
}
|
}
|
||||||
UpdateResult::NeedsRebuild => {
|
UpdateResult::NeedsRebuild => {
|
||||||
|
@ -358,7 +356,7 @@ pub async fn startup_default(port: u16, config: CrateConfig) -> Result<()> {
|
||||||
Ok(response)
|
Ok(response)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.service(ServeDir::new((&config.crate_dir).join(&dist_path)));
|
.service(ServeDir::new(config.crate_dir.join(&dist_path)));
|
||||||
|
|
||||||
let router = Router::new()
|
let router = Router::new()
|
||||||
.route("/_dioxus/ws", get(ws_handler))
|
.route("/_dioxus/ws", get(ws_handler))
|
||||||
|
|
Loading…
Reference in a new issue