From 851646dd975e3cdfd7c6f38d23ae6f94445a3310 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Thu, 10 Feb 2022 20:24:29 +0100 Subject: [PATCH] events: Fix rustdoc warning --- crates/ruma-events/src/room/encrypted.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ruma-events/src/room/encrypted.rs b/crates/ruma-events/src/room/encrypted.rs index c9c2f2fa..275a4f7d 100644 --- a/crates/ruma-events/src/room/encrypted.rs +++ b/crates/ruma-events/src/room/encrypted.rs @@ -109,8 +109,9 @@ pub enum Relation { /// The event this relation belongs to replaces another event. /// -/// In contrast to [`message::Replacement`], this struct doesn't store the new content, since that -/// is part of the encrypted content of an `m.room.encrypted` events. +/// In contrast to [`message::Replacement`](crate::room::message::Replacement), this struct doesn't +/// store the new content, since that is part of the encrypted content of an `m.room.encrypted` +/// events. #[derive(Clone, Debug, Deserialize, Serialize)] #[cfg(feature = "unstable-pre-spec")] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]