mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +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> {
|
pub(crate) fn get_param(self, context: &Context) -> Result<Params, Error> {
|
||||||
let res: Option<String> = context
|
let res: Option<String> = context
|
||||||
.sql
|
.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
|
Ok(res
|
||||||
.map(|s| s.parse().unwrap_or_default())
|
.map(|s| s.parse().unwrap_or_default())
|
||||||
.unwrap_or_default())
|
.unwrap_or_default())
|
||||||
|
|||||||
Reference in New Issue
Block a user