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:
parent
2e83e56a07
commit
919735b4ce
7 changed files with 15 additions and 15 deletions
|
@ -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()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue