let mut err: Option> = None; let mut k = Box::pin(get_all_bans(sql_pool).await.filter_map(|r| async { match r { Ok(b) => Some(row![ cell!(b.ip.to_string()), cell!(b.name), cell!(b.expires), cell!(b.reason), cell!(b.moderator), cell!(b.region.unwrap_or_default()), cell!(b.note.unwrap_or_default()) ]), Err(e) => { err = Some(Box::new(e)); None } } })); if let Some(e) = err { warn!("Error getting bans: {}", e.to_string()); }