remove MnemoConf::new
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user