Fixed warnings

This commit is contained in:
Jonas_Jones 2024-01-28 03:10:49 +01:00
parent f201bc7fda
commit 462ee68763
7 changed files with 9 additions and 8 deletions

View file

@ -1,6 +1,6 @@
use warp::Filter;
pub fn get_builtin_routes() -> impl warp::Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
pub fn get_builtin_routes() -> impl warp::Filter<Extract = impl warp::Reply + warp::generic::Tuple, Error = warp::Rejection> + Clone {
warp::path("v1")
.and((warp::path("help").map(|| "Please refer to the wiki at https://wiki.jonasjones.dev/Api/"))
.or(warp::path("ping").map(|| "pong"))