From c44e0b5e5ab3e75551530d4e5d22b3399752d293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Sun, 26 Feb 2023 12:45:12 +0100 Subject: [PATCH] push: Fix ordering of docs --- crates/ruma-common/src/push/predefined.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruma-common/src/push/predefined.rs b/crates/ruma-common/src/push/predefined.rs index e58f1048..982b0a2f 100644 --- a/crates/ruma-common/src/push/predefined.rs +++ b/crates/ruma-common/src/push/predefined.rs @@ -1,8 +1,8 @@ -use ruma_macros::StringEnum; - ///! Constructors for [predefined push rules]. ///! ///! [predefined push rules]: https://spec.matrix.org/latest/client-server-api/#predefined-rules +use ruma_macros::StringEnum; + use super::{ Action::*, ConditionalPushRule, PatternedPushRule, PushCondition::*, RoomMemberCountIs, Ruleset, Tweak, @@ -12,12 +12,12 @@ use crate::{PrivOwnedStr, UserId}; impl Ruleset { /// The list of all [predefined push rules]. /// - /// [predefined push rules]: https://spec.matrix.org/latest/client-server-api/#predefined-rules - /// /// # Parameters /// /// - `user_id`: the user for which to generate the default rules. Some rules depend on the /// user's ID (for instance those to send notifications when they are mentioned). + /// + /// [predefined push rules]: https://spec.matrix.org/latest/client-server-api/#predefined-rules pub fn server_default(user_id: &UserId) -> Self { Self { content: [PatternedPushRule::contains_user_name(user_id)].into(),