From 16879909e87786f01be47883bc06f7326f87cbf7 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 16 Sep 2023 20:05:50 +0100 Subject: [PATCH] fmt: fmt --- src/bin/update_users.rs | 2 +- src/lib.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/update_users.rs b/src/bin/update_users.rs index 6db7513..e4c6c28 100644 --- a/src/bin/update_users.rs +++ b/src/bin/update_users.rs @@ -7,7 +7,7 @@ use serenity::{ }, Client, }; -use skynet_discord_bot::{db_init, get_config, get_server_config_bulk, Accounts, Config, DataBase, Servers, get_now_iso}; +use skynet_discord_bot::{db_init, get_config, get_now_iso, get_server_config_bulk, Accounts, Config, DataBase, Servers}; use sqlx::{Pool, Sqlite}; use std::{process, sync::Arc}; use tokio::sync::RwLock; diff --git a/src/lib.rs b/src/lib.rs index 0ce1f64..4a33b54 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,13 +8,13 @@ use serenity::{ prelude::TypeMapKey, }; +use chrono::{Datelike, SecondsFormat, Utc}; use sqlx::{ sqlite::{SqliteConnectOptions, SqlitePoolOptions, SqliteRow}, Error, FromRow, Pool, Row, Sqlite, }; use std::{env, str::FromStr, sync::Arc}; use tokio::sync::RwLock; -use chrono::{Datelike, SecondsFormat, Utc}; pub struct Config { pub skynet_server: GuildId, @@ -260,7 +260,6 @@ pub async fn get_server_config_bulk(db: &Pool) -> Vec { .unwrap_or_default() } - pub fn get_now_iso(short: bool) -> String { let now = Utc::now(); if short { @@ -268,4 +267,4 @@ pub fn get_now_iso(short: bool) -> String { } else { now.to_rfc3339_opts(SecondsFormat::Millis, true) } -} \ No newline at end of file +}