From 44ea384ee59fafb76882e1d6687bc4cbc6d61611 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 30 Oct 2023 10:22:00 +0800 Subject: chore: remove unnecessary clippy macros --- src/client/localai.rs | 1 - src/client/mod.rs | 1 - src/client/openai.rs | 2 -- 3 files changed, 4 deletions(-) (limited to 'src/client') diff --git a/src/client/localai.rs b/src/client/localai.rs index db33480..084603b 100644 --- a/src/client/localai.rs +++ b/src/client/localai.rs @@ -13,7 +13,6 @@ use serde_json::json; use std::env; use std::time::Duration; -#[allow(clippy::module_name_repetitions)] #[derive(Debug)] pub struct LocalAIClient { global_config: SharedConfig, diff --git a/src/client/mod.rs b/src/client/mod.rs index b2ceb84..3397453 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -20,7 +20,6 @@ use crate::{ utils::split_text, }; -#[allow(clippy::struct_excessive_bools)] #[derive(Debug, Clone, Deserialize)] #[serde(tag = "type")] pub enum ClientConfig { diff --git a/src/client/openai.rs b/src/client/openai.rs index 0141d2d..4ccb1b7 100644 --- a/src/client/openai.rs +++ b/src/client/openai.rs @@ -16,7 +16,6 @@ use std::time::Duration; const API_URL: &str = "https://api.openai.com/v1/chat/completions"; -#[allow(clippy::module_name_repetitions)] #[derive(Debug)] pub struct OpenAIClient { global_config: SharedConfig, @@ -24,7 +23,6 @@ pub struct OpenAIClient { model_info: ModelInfo, } -#[allow(clippy::struct_excessive_bools)] #[derive(Debug, Clone, Deserialize, Default)] pub struct OpenAIConfig { pub api_key: Option, -- cgit v1.2.3