chore: Fix new docs warnings

This commit is contained in:
Kévin Commaille 2022-10-12 10:08:58 +02:00 committed by Kévin Commaille
parent c2c4555133
commit b538234bce
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
//! //!
//! The differences between the `RoomV1Pdu` schema and the `RoomV3Pdu` schema are that the //! The differences between the `RoomV1Pdu` schema and the `RoomV3Pdu` schema are that the
//! `RoomV1Pdu` takes an `event_id` field (`RoomV3Pdu` does not), and `auth_events` and //! `RoomV1Pdu` takes an `event_id` field (`RoomV3Pdu` does not), and `auth_events` and
//! `prev_events` take `Vec<(OwnedEventId, EventHash)> rather than `Vec<OwnedEventId>` in //! `prev_events` take `Vec<(OwnedEventId, EventHash)>` rather than `Vec<OwnedEventId>` in
//! `RoomV3Pdu`. //! `RoomV3Pdu`.
use std::collections::BTreeMap; use std::collections::BTreeMap;

View File

@ -11,7 +11,7 @@ use serde::{
ser::{Error, Serialize, Serializer}, ser::{Error, Serialize, Serializer},
}; };
/// Serialize an Option<Duration>. /// Serialize an `Option<Duration>`.
/// ///
/// Will fail if integer is greater than the maximum integer that can be /// Will fail if integer is greater than the maximum integer that can be
/// unambiguously represented by an f64. /// unambiguously represented by an f64.
@ -28,7 +28,7 @@ where
} }
} }
/// Deserializes an Option<Duration>. /// Deserializes an `Option<Duration>`.
/// ///
/// Will fail if integer is greater than the maximum integer that can be /// Will fail if integer is greater than the maximum integer that can be
/// unambiguously represented by an f64. /// unambiguously represented by an f64.

View File

@ -144,7 +144,7 @@ impl Ed25519KeyPair {
/// ///
/// # Returns /// # Returns
/// ///
/// Returns a Vec<u8> representing a DER-encoded PKCS#8 v2 document (with public key) /// Returns a `Vec<u8>` representing a DER-encoded PKCS#8 v2 document (with public key)
/// ///
/// # Errors /// # Errors
/// ///