remove a few unnecessary muts
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
38552b36e9
commit
cf9b72ce3f
3 changed files with 3 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue