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 } } }