From fe1d637b0591990ae25cf5c548f6e0313fd02c05 Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Thu, 20 Jan 2022 21:27:17 +0100 Subject: [PATCH] use clamp instead of min(max()) --- src/api/api_server.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api/api_server.rs b/src/api/api_server.rs index b064ac24..4fd8eb8c 100644 --- a/src/api/api_server.rs +++ b/src/api/api_server.rs @@ -1,4 +1,3 @@ -use std::cmp::{max, min}; use std::net::SocketAddr; use std::sync::Arc; @@ -221,7 +220,7 @@ async fn handler_inner(garage: Arc, req: Request) -> Result, req: Request) -> Result, req: Request) -> Result