fixing machine doc builds

This commit is contained in:
Benjamin Kampmann
2022-02-24 17:29:08 +01:00
parent 6c90af1bd7
commit 75953d6022
2 changed files with 3 additions and 3 deletions

View File

@@ -442,10 +442,10 @@ impl OlmMachine {
///
/// # Example
///
/// ```
/// ```[skip]
/// # use std::convert::TryFrom;
/// # use matrix_sdk_crypto::OlmMachine;
/// # use ruma::user_id;
/// # use ruma::{user_id, device_id};
/// # use futures::executor::block_on;
/// # let alice = user_id!("@alice:example.org");
/// # let machine = OlmMachine::new(alice, device_id!("DEVICEID"));
@@ -460,7 +460,6 @@ impl OlmMachine {
/// }
/// # });
/// ```
#[cfg(any(test, feature = "testing"))]
#[allow(dead_code)]
async fn should_upload_keys(&self) -> bool {
self.account.should_upload_keys().await

View File

@@ -1,3 +1,4 @@
#![allow(dead_code)]
use matrix_sdk_common::ruma::{
events::EventType, receipt::ReceiptType, DeviceId, EventId, MxcUri, RoomId, TransactionId,
UserId,