Skip to content

Commit 009fb7b

Browse files
committed
Questionable changes to process_lib?
1 parent 8c4a427 commit 009fb7b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/hyperapp.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414
logging::{error, info},
1515
set_state, timer, Address, BuildError, LazyLoadBlob, Message, Request, SendError,
1616
};
17-
use futures_channel::{mpsc, oneshot};
17+
use futures_channel::oneshot;
1818
use futures_util::task::{waker_ref, ArcWake};
1919
use serde::{Deserialize, Serialize};
2020
use thiserror::Error;
@@ -495,14 +495,13 @@ where
495495

496496
pub fn setup_server(
497497
ui_config: Option<&HttpBindingConfig>,
498-
ui_path: Option<String>,
499498
endpoints: &[Binding],
500499
) -> http::server::HttpServer {
501500
let mut server = http::server::HttpServer::new(5);
502501

503502
if let Some(ui) = ui_config {
504503
if let Err(e) = server.serve_ui(
505-
&ui_path.unwrap_or_else(|| "ui".to_string()),
504+
"ui",
506505
vec!["/"],
507506
ui.clone(),
508507
) {

0 commit comments

Comments
 (0)