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

@ -1,5 +1,5 @@
pub(crate) use conduit::utils::HtmlEscape;
use ruma::OwnedRoomId;
use ruma::{OwnedRoomId, RoomId};
use crate::services;
@ -9,9 +9,9 @@ pub(crate) fn escape_html(s: &str) -> String {
.replace('>', "&gt;")
}
pub(crate) fn get_room_info(id: &OwnedRoomId) -> (OwnedRoomId, u64, String) {
pub(crate) fn get_room_info(id: &RoomId) -> (OwnedRoomId, u64, String) {
(
id.clone(),
id.into(),
services()
.rooms
.state_cache