summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-14 19:06:08 +0800
committerGitHub <noreply@github.com>2024-06-14 19:06:08 +0800
commitc1d39e4621373d232cb7520b2a425b536c7f2dd9 (patch)
tree96902ad55fb577885f043d146b05db6ea2ccc781 /src
parent8cbc74e9ad02d1e3a1e9b9e304a8f222bf32a369 (diff)
downloadaichat-c1d39e4621373d232cb7520b2a425b536c7f2dd9.tar.gz
chore: clippy and format (#600)
Diffstat (limited to 'src')
-rw-r--r--src/client/common.rs12
-rw-r--r--src/function.rs7
2 files changed, 0 insertions, 19 deletions
diff --git a/src/client/common.rs b/src/client/common.rs
index 1055b84..4ff476b 100644
--- a/src/client/common.rs
+++ b/src/client/common.rs
@@ -51,18 +51,6 @@ macro_rules! register_client {
Unknown,
}
- #[derive(Debug, Clone, serde::Deserialize)]
- #[serde(tag = "type")]
- pub enum ClientModel {
- $(
- #[serde(rename = $name)]
- $config { models: Vec<ModelData> },
- )+
- #[serde(other)]
- Unknown,
- }
-
-
$(
#[derive(Debug)]
pub struct $client {
diff --git a/src/function.rs b/src/function.rs
index b763dc2..b2833e8 100644
--- a/src/function.rs
+++ b/src/function.rs
@@ -107,13 +107,6 @@ impl Functions {
}
}
-#[derive(Debug, Clone, Deserialize)]
-pub struct FunctionConfig {
- pub enable: bool,
- pub declarations_file: String,
- pub functions_dir: String,
-}
-
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FunctionDeclaration {
pub name: String,