remove MnemoConf::new

This commit is contained in:
2026-05-05 15:23:49 +02:00
parent 29804e75e5
commit 76ac36c4fb

View File

@@ -20,9 +20,6 @@ pub struct MnemoConf {
} }
impl MnemoConf { impl MnemoConf {
pub fn new() -> Self {
MnemoConf::default()
}
pub async fn load(conn: &mut sqlx::PgConnection) -> Result<Self, sqlx::Error> { pub async fn load(conn: &mut sqlx::PgConnection) -> Result<Self, sqlx::Error> {
let row: Option<serde_json::Value> = let row: Option<serde_json::Value> =
sqlx::query_scalar("SELECT config FROM mnemoconf LIMIT 1") sqlx::query_scalar("SELECT config FROM mnemoconf LIMIT 1")