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;