Remove extra generic
This commit is contained in:
parent
fb87a44d00
commit
821d47153e
|
@ -34,10 +34,9 @@ pub struct BlogDb {
|
||||||
|
|
||||||
impl BlogDb {
|
impl BlogDb {
|
||||||
/// Create a new BlogDb with an initial user.
|
/// 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
|
where
|
||||||
S: AsRef<str>,
|
S: AsRef<str>,
|
||||||
T: AsRef<str>,
|
|
||||||
{
|
{
|
||||||
let main_db_name = dotenvy::var("DB_MAIN_PATH")?;
|
let main_db_name = dotenvy::var("DB_MAIN_PATH")?;
|
||||||
let cache_name = dotenvy::var("DB_CACHE_PATH")?;
|
let cache_name = dotenvy::var("DB_CACHE_PATH")?;
|
||||||
|
|
Loading…
Reference in New Issue