fmt: clippy and fmt
This commit is contained in:
parent
d0b63190b3
commit
6cbbab80bd
6 changed files with 10 additions and 11 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue