Remove extra generic

This commit is contained in:
august kline 2024-11-14 12:07:43 -05:00
parent fb87a44d00
commit 821d47153e
1 changed files with 1 additions and 2 deletions

View File

@ -34,10 +34,9 @@ pub struct BlogDb {
impl BlogDb {
/// Create a new BlogDb with an initial user.
pub async fn new<S, T>(username: S, password: String) -> anyhow::Result<Self>
pub async fn new<S>(username: S, password: String) -> anyhow::Result<Self>
where
S: AsRef<str>,
T: AsRef<str>,
{
let main_db_name = dotenvy::var("DB_MAIN_PATH")?;
let cache_name = dotenvy::var("DB_CACHE_PATH")?;