From 821d47153e649b5fca6fc9ae2fed16be637127bb Mon Sep 17 00:00:00 2001 From: august kline Date: Thu, 14 Nov 2024 12:07:43 -0500 Subject: [PATCH] Remove extra generic --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")?;