diff --git a/src/qr.rs b/src/qr.rs index f0736b48f0..36bcfb8829 100644 --- a/src/qr.rs +++ b/src/qr.rs @@ -539,7 +539,7 @@ async fn decode_ideltachat(context: &Context, prefix: &str, qr: &str) -> Result< let qr = qr.replacen('&', "#", 1); decode_openpgp(context, &qr) .await - .context(format!("failed to decode {prefix} QR code")) + .with_context(|| format!("failed to decode {prefix} QR code")) } /// scheme: `DCACCOUNT:https://example.org/new_email?t=1w_7wDjgjelxeX884x96v3`