docs: Fix warnings
This commit is contained in:
parent
a1a8a01bec
commit
65cb085f30
@ -13,6 +13,8 @@ use super::{
|
|||||||
/// The base trait that all event content types implement.
|
/// The base trait that all event content types implement.
|
||||||
///
|
///
|
||||||
/// Use [`macros::EventContent`] to derive this traits. It is not meant to be implemented manually.
|
/// Use [`macros::EventContent`] to derive this traits. It is not meant to be implemented manually.
|
||||||
|
///
|
||||||
|
/// [`macros::EventContent`]: super::macros::EventContent
|
||||||
pub trait EventContent: Sized + Serialize {
|
pub trait EventContent: Sized + Serialize {
|
||||||
/// The Rust enum for the event kind's known types.
|
/// The Rust enum for the event kind's known types.
|
||||||
type EventType;
|
type EventType;
|
||||||
|
@ -53,10 +53,10 @@ pub enum MediaSource {
|
|||||||
Encrypted(Box<EncryptedFile>),
|
Encrypted(Box<EncryptedFile>),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Custom implementation of `Deserialize`, because serde doesn't guarantee what variant will be
|
// Custom implementation of `Deserialize`, because serde doesn't guarantee what variant will be
|
||||||
/// deserialized for "externally tagged"¹ enums where multiple "tag" fields exist.
|
// deserialized for "externally tagged"¹ enums where multiple "tag" fields exist.
|
||||||
///
|
//
|
||||||
/// ¹ https://serde.rs/enum-representations.html
|
// ¹ https://serde.rs/enum-representations.html
|
||||||
impl<'de> Deserialize<'de> for MediaSource {
|
impl<'de> Deserialize<'de> for MediaSource {
|
||||||
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
||||||
where
|
where
|
||||||
|
Loading…
x
Reference in New Issue
Block a user