mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
fix doc comments
This commit is contained in:
@@ -414,7 +414,7 @@ impl From<SendProgress> for EventType {
|
|||||||
/// This is a long running operation which will only when completed.
|
/// This is a long running operation which will only when completed.
|
||||||
///
|
///
|
||||||
/// Using [`Qr`] as argument is a bit odd as it only accepts one specific variant of it. It
|
/// Using [`Qr`] as argument is a bit odd as it only accepts one specific variant of it. It
|
||||||
/// does avoid having [`iroh::provider::Ticket`] in the primary API however, without
|
/// does avoid having [`iroh::dial::Ticket`] in the primary API however, without
|
||||||
/// having to revert to untyped bytes.
|
/// having to revert to untyped bytes.
|
||||||
pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> {
|
||||||
ensure!(
|
ensure!(
|
||||||
|
|||||||
@@ -497,7 +497,7 @@ fn decode_webrtc_instance(_context: &Context, qr: &str) -> Result<Qr> {
|
|||||||
/// Decodes a [`DCBACKUP_SCHEME`] QR code.
|
/// Decodes a [`DCBACKUP_SCHEME`] QR code.
|
||||||
///
|
///
|
||||||
/// The format of this scheme is `DCBACKUP:<encoded ticket>`. The encoding is the
|
/// The format of this scheme is `DCBACKUP:<encoded ticket>`. The encoding is the
|
||||||
/// [`iroh::provider::Ticket`]'s `Display` impl.
|
/// [`iroh::dial::Ticket`]'s `Display` impl.
|
||||||
fn decode_backup(qr: &str) -> Result<Qr> {
|
fn decode_backup(qr: &str) -> Result<Qr> {
|
||||||
let payload = qr
|
let payload = qr
|
||||||
.strip_prefix(DCBACKUP_SCHEME)
|
.strip_prefix(DCBACKUP_SCHEME)
|
||||||
|
|||||||
Reference in New Issue
Block a user