mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
ChatId.get_param: remove unnecessary type annotation
This commit is contained in:
@@ -362,7 +362,7 @@ impl ChatId {
|
||||
pub(crate) fn get_param(self, context: &Context) -> Result<Params, Error> {
|
||||
let res: Option<String> = context
|
||||
.sql
|
||||
.query_get_value_result::<_, _>("SELECT param FROM chats WHERE id=?", params![self])?;
|
||||
.query_get_value_result("SELECT param FROM chats WHERE id=?", params![self])?;
|
||||
Ok(res
|
||||
.map(|s| s.parse().unwrap_or_default())
|
||||
.unwrap_or_default())
|
||||
|
||||
Reference in New Issue
Block a user