diff --git a/Cargo.toml b/Cargo.toml index 6d2f457..d9088a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ markup5ever_rcdom = "0.2" minijinja = { version = "0.32", features = ["source"] } notify-debouncer-mini = { version = "0.2", default-features = false } once_cell = "1" -opener = "0.5" +opener = "0.6" parking_lot = "0.12" promptly = "0.3" pulldown-cmark = "0.9" @@ -45,9 +45,9 @@ syntect = { version = "5", default-features = false, features = [ thiserror = "1" time = { version = "0.3", features = ["serde", "serde-well-known"] } tokio = { version = "1.26", features = ["rt-multi-thread", "signal", "macros"] } -toml = "0.5" +toml = "0.7" tower = { version = "0.4", features = ["make", "util"] } -tower-http = { version = "0.3", features = ["fs"] } +tower-http = { version = "0.4", features = ["fs"] } walkdir = "2" [dev-dependencies] diff --git a/src/serve.rs b/src/serve.rs index 598f941..c521743 100644 --- a/src/serve.rs +++ b/src/serve.rs @@ -1,4 +1,5 @@ use std::{ + convert::Infallible, env, fs, future::Future, io, @@ -90,7 +91,7 @@ struct FallbackService { impl Service> for FallbackService { type Response = Response; - type Error = io::Error; + type Error = Infallible; type Future = Pin> + Send>>; fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll> {