mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 16:06:30 +03:00
no let else :(
This commit is contained in:
@@ -297,8 +297,9 @@ pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
||||
}
|
||||
|
||||
async fn get_backup_inner(context: &Context, qr: Qr) -> Result<()> {
|
||||
let Qr::Backup { ticket } = qr else {
|
||||
bail!("QR code for backup must be of type DCBACKUP");
|
||||
let ticket = match qr {
|
||||
Qr::Backup { ticket } => ticket,
|
||||
_ => bail!("QR code for backup must be of type DCBACKUP"),
|
||||
};
|
||||
let opts = Options {
|
||||
addr: ticket.addr,
|
||||
|
||||
Reference in New Issue
Block a user