From c6133ebda73dac702db9d7f83cbd6ad806132dfb Mon Sep 17 00:00:00 2001 From: ErikKaumk Date: Fri, 12 Jul 2024 09:09:54 +0200 Subject: [PATCH] fix clippy errors --- router/src/usage_stats.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/router/src/usage_stats.rs b/router/src/usage_stats.rs index 389996ed..8bb6ddc1 100644 --- a/router/src/usage_stats.rs +++ b/router/src/usage_stats.rs @@ -84,6 +84,7 @@ pub struct Args { } impl Args { + #[allow(clippy::too_many_arguments)] pub fn new( model_config: Option, tokenizer_config: Option, @@ -189,6 +190,12 @@ impl fmt::Display for SystemInfo { } } +impl Default for Env { + fn default() -> Self { + Self::new() + } +} + impl Env { pub fn new() -> Self { let nvidia_env = nvidia_smi();