From 820924534ab3eb0b2544a594881591559e7c45a5 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 dfb8dfd..11daae1 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