Skip to content

Commit

Permalink
Update server.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
MRRcode979 authored Jul 8, 2023
1 parent 5406662 commit 55d7c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warp::http::HeaderMap;
use warp::{filters::BoxedFilter, http::Uri, path::FullPath, redirect, Filter, Reply};

#[tokio::main]
pub async fn serve(addr: Vec<u8>, port: u16) {
pub async fn serve(addr: &[u8], port: u16) {
let current_dir = std::env::current_dir().expect("failed to read current directory");

let routes = root_redirect()
Expand Down

0 comments on commit 55d7c31

Please sign in to comment.