mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
Reduce number of AsRef generics
They result in compilation of duplicate code.
This commit is contained in:
@@ -71,7 +71,7 @@ impl<'a> BobStateHandle<'a> {
|
||||
pub async fn chat_id(&self, context: &Context) -> Result<ChatId> {
|
||||
match self.bobstate.invite {
|
||||
QrInvite::Group { ref grpid, .. } => {
|
||||
if let Some((chat_id, _, _)) = chat::get_chat_id_by_grpid(context, &grpid).await? {
|
||||
if let Some((chat_id, _, _)) = chat::get_chat_id_by_grpid(context, grpid).await? {
|
||||
Ok(chat_id)
|
||||
} else {
|
||||
bail!("chat not found")
|
||||
|
||||
Reference in New Issue
Block a user