diff --git a/ruma-client-api/src/r0/user_directory/search_users.rs b/ruma-client-api/src/r0/user_directory/search_users.rs index 8039af95..c896712f 100644 --- a/ruma-client-api/src/r0/user_directory/search_users.rs +++ b/ruma-client-api/src/r0/user_directory/search_users.rs @@ -29,7 +29,7 @@ ruma_api! { /// /// See [MDN] for the syntax. /// - /// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language#Syntax + /// [MDN]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language#Syntax #[ruma_api(header = ACCEPT_LANGUAGE)] pub language: Option, } diff --git a/ruma-common/src/push/action.rs b/ruma-common/src/push/action.rs index 62a03b94..5c82a654 100644 --- a/ruma-common/src/push/action.rs +++ b/ruma-common/src/push/action.rs @@ -6,7 +6,7 @@ use serde_json::value::RawValue as RawJsonValue; /// This represents the different actions that should be taken when a rule is matched, and /// controls how notifications are delivered to the client. /// -/// See https://matrix.org/docs/spec/client_server/r0.6.0#actions for details. +/// See for details. #[derive(Clone, Debug)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub enum Action { diff --git a/ruma-events/src/room/relationships.rs b/ruma-events/src/room/relationships.rs index f3a141ff..1bd80597 100644 --- a/ruma-events/src/room/relationships.rs +++ b/ruma-events/src/room/relationships.rs @@ -4,7 +4,7 @@ //! adds types to parse the relationship of an event if any exists. //! //! MSC for all the relates_to types except replies: -//! https://github.com/matrix-org/matrix-doc/pull/2674 +//! use ruma_identifiers::EventId; use serde::{Deserialize, Serialize}; diff --git a/ruma-identifiers/src/macros.rs b/ruma-identifiers/src/macros.rs index e3cf036d..b1d64150 100644 --- a/ruma-identifiers/src/macros.rs +++ b/ruma-identifiers/src/macros.rs @@ -1,6 +1,6 @@ /// Declares an item with a doc attribute computed by some macro expression. /// This allows documentation to be dynamically generated based on input. -/// Necessary to work around https://github.com/rust-lang/rust/issues/52607. +/// Necessary to work around . macro_rules! doc_concat { ( $( #[doc = $doc:expr] $( $thing:tt )* )* ) => ( $( #[doc = $doc] $( $thing )* )* ); } diff --git a/ruma-serde/src/lib.rs b/ruma-serde/src/lib.rs index b960f90b..07f0efa6 100644 --- a/ruma-serde/src/lib.rs +++ b/ruma-serde/src/lib.rs @@ -59,7 +59,7 @@ pub fn is_true(b: &bool) -> bool { /// /// To be used like this: /// `#[serde(deserialize_with = "empty_string_as_none")]` -/// Relevant serde issue: https://github.com/serde-rs/serde/issues/1425 +/// Relevant serde issue: pub fn empty_string_as_none<'de, D, T>(de: D) -> Result, D::Error> where D: serde::Deserializer<'de>,