remove a few unnecessary muts

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-09-09 21:41:57 -04:00
parent 38552b36e9
commit cf9b72ce3f
3 changed files with 3 additions and 7 deletions

View file

@ -230,8 +230,7 @@ pub(crate) async fn create_room_route(
_ => RoomPreset::PrivateChat, // Room visibility should not be custom
});
let mut users = BTreeMap::new();
users.insert(sender_user.clone(), int!(100));
let mut users = BTreeMap::from_iter([(sender_user.clone(), int!(100))]);
if preset == RoomPreset::TrustedPrivateChat {
for invite_ in &body.invite {