mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 23:16:30 +03:00
Reduce number of generic impl AsRef
This commit is contained in:
@@ -150,8 +150,7 @@ impl LoginParam {
|
||||
}
|
||||
|
||||
/// Read the login parameters from the database.
|
||||
async fn from_database(context: &Context, prefix: impl AsRef<str>) -> Result<Self> {
|
||||
let prefix = prefix.as_ref();
|
||||
async fn from_database(context: &Context, prefix: &str) -> Result<Self> {
|
||||
let sql = &context.sql;
|
||||
|
||||
let key = format!("{}addr", prefix);
|
||||
|
||||
Reference in New Issue
Block a user