diff --git a/src/lib.rs b/src/lib.rs index 94aef84..c57dc7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,10 +34,9 @@ pub struct BlogDb { impl BlogDb { /// Create a new BlogDb with an initial user. - pub async fn new(username: S, password: String) -> anyhow::Result + pub async fn new(username: S, password: String) -> anyhow::Result where S: AsRef, - T: AsRef, { let main_db_name = dotenvy::var("DB_MAIN_PATH")?; let cache_name = dotenvy::var("DB_CACHE_PATH")?;