From c38084432ffc33ca2660bc77e5e8c4a85a01351d Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 25 Nov 2021 21:06:47 +0100 Subject: [PATCH] identifiers: Borrow mxid in sign_invitation_ed25519 Request --- crates/ruma-identity-service-api/CHANGELOG.md | 4 ++++ .../src/invitation/sign_invitation_ed25519/v2.rs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/ruma-identity-service-api/CHANGELOG.md b/crates/ruma-identity-service-api/CHANGELOG.md index 256fe117..5deb005d 100644 --- a/crates/ruma-identity-service-api/CHANGELOG.md +++ b/crates/ruma-identity-service-api/CHANGELOG.md @@ -1,5 +1,9 @@ # [unreleased] +Breaking changes: + +* Borrow `mxid` in `invitation::sign_invitation_ed25519::v2::Request` + # 0.3.0 Breaking changes: diff --git a/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519/v2.rs b/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519/v2.rs index 3440a9af..b1d90d83 100644 --- a/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519/v2.rs +++ b/crates/ruma-identity-service-api/src/invitation/sign_invitation_ed25519/v2.rs @@ -15,7 +15,7 @@ ruma_api! { request: { /// The Matrix user ID of the user accepting the invitation. - pub mxid: UserId, + pub mxid: &'a UserId, /// The token from the call to store-invite. pub token: &'a str, @@ -41,7 +41,7 @@ ruma_api! { impl<'a> Request<'a> { /// Creates a `Request` with the given Matrix user ID, token and private_key. - pub fn new(mxid: UserId, token: &'a str, private_key: &'a str) -> Self { + pub fn new(mxid: &'a UserId, token: &'a str, private_key: &'a str) -> Self { Self { mxid, token, private_key } } }