1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-31 04:08:30 +00:00

remove usages of &String and &Owned[..]

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-06-03 01:58:26 -04:00
parent 2e83e56a07
commit 919735b4ce
7 changed files with 15 additions and 15 deletions

View file

@ -111,9 +111,9 @@ impl Service {
.await;
}
async fn receive(&self, event: AdminRoomEvent, room: &OwnedRoomId, user: &UserId) -> Result<(), Error> {
async fn receive(&self, event: AdminRoomEvent, room: &RoomId, user: &UserId) -> Result<(), Error> {
if let Some(handle) = self.handle.lock().await.as_ref() {
handle(event, room.clone(), user.into()).await
handle(event, room.into(), user.into()).await
} else {
Err(Error::Err("Admin module is not loaded.".into()))
}