fmt: clippy and fmt

This commit is contained in:
silver 2024-05-06 02:12:26 +01:00
parent d0b63190b3
commit 6cbbab80bd
6 changed files with 10 additions and 11 deletions

View file

@ -345,7 +345,7 @@ pub fn random_string(len: usize) -> String {
pub mod set_roles {
use super::*;
pub async fn update_server(ctx: &Context, server: &Servers, remove_roles: &[Option<RoleId>], members_changed: &Vec<UserId>) {
pub async fn update_server(ctx: &Context, server: &Servers, remove_roles: &[Option<RoleId>], members_changed: &[UserId]) {
let db_lock = {
let data_read = ctx.data.read().await;
data_read.get::<DataBase>().expect("Expected Database in TypeMap.").clone()