From 28f5601342deba2534d4c53e66f940b145647e04 Mon Sep 17 00:00:00 2001 From: Vann-Dev Date: Fri, 15 Dec 2023 12:26:17 +0700 Subject: [PATCH] ref: remove unused --- src/routes/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/main.rs b/src/routes/main.rs index 85efbb5..6216e34 100644 --- a/src/routes/main.rs +++ b/src/routes/main.rs @@ -10,7 +10,7 @@ pub async fn server() { let api = warp::get() .and(warp::path::param()) .and_then(|params: String| async { - if decoder::validate(params.clone()) == true { + if decoder::validate(params.clone()) { Result::<_, Rejection>::Ok(warp::reply::json(&decoder::decode(params))) } else { Result::<_, Rejection>::Ok(warp::reply::json(&"False"))