From 81ee85afd4e4f434f6e9aa1e1c3c3996edc326e8 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 14 Aug 2024 16:47:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sr_download/src/config.rs | 1 + sr_download/src/db_part.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sr_download/src/config.rs b/sr_download/src/config.rs index 84b47cd..3d49764 100644 --- a/sr_download/src/config.rs +++ b/sr_download/src/config.rs @@ -114,6 +114,7 @@ impl ConfigFile { /// 同理, 也帮你骂好了 /// 甚至不需要你 ? + #[allow(unused)] pub fn read_or_panic() -> Self { Self::try_read().expect("Please Fix the config.toml file") } diff --git a/sr_download/src/db_part.rs b/sr_download/src/db_part.rs index cfe49ca..711f323 100644 --- a/sr_download/src/db_part.rs +++ b/sr_download/src/db_part.rs @@ -11,6 +11,7 @@ use crate::model; use crate::model::sea_orm_active_enums::SaveType; use migration::{Migrator, MigratorTrait, SaveId, FULL_DATA_VIEW, TEXT_DATA_MAX_LEN}; +#[allow(unused)] #[derive(Debug, Clone)] pub struct DbData { pub text: Option, @@ -44,6 +45,8 @@ impl From<(model::main_data::Model, model::long_data::Model)> for DbData { } } +#[allow(unused)] +/// 我承认, 这玩意大部分没用上(捂脸) impl DbData { pub fn new(save_id: SaveId, data: String, save_type: SaveType) -> Self { let len = data.len() as i64;