Await an unused future and change #![allow(unused)] to dead_code (#88)

Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
Aeledfyr
2020-10-20 00:24:40 -05:00
committed by GitHub
parent b05b38b269
commit e966ef96e5
4 changed files with 6 additions and 11 deletions

View File

@@ -9,7 +9,6 @@ macro_rules! generate_ids {
$vis async fn $function_name(
con: &mut sqlx::Transaction<'_, sqlx::Postgres>,
) -> Result<$return_type, DatabaseError> {
use rand::Rng;
let mut rng = rand::thread_rng();
let length = $id_length;
let mut id = random_base62_rng(&mut rng, length);