From 62e6661616de4c90c66ff0251609229125df0a22 Mon Sep 17 00:00:00 2001 From: drbh Date: Wed, 10 Jan 2024 14:02:28 -0500 Subject: [PATCH] fix: clippy tweaks --- router/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/router/src/main.rs b/router/src/main.rs index 6ca4d52b..e9319916 100644 --- a/router/src/main.rs +++ b/router/src/main.rs @@ -1,4 +1,3 @@ -/// Text Generation Inference webserver entrypoint use axum::http::HeaderValue; use clap::Parser; use hf_hub::api::tokio::{Api, ApiBuilder, ApiRepo}; @@ -185,7 +184,7 @@ async fn main() -> Result<(), RouterError> { .with_progress(false) .with_token(authorization_token); - if let Some(cache_dir) = std::env::var("HUGGINGFACE_HUB_CACHE").ok() { + if let Ok(cache_dir) = std::env::var("HUGGINGFACE_HUB_CACHE") { builder = builder.with_cache_dir(cache_dir.into()); }