chore: please clippy and rustfmt
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/clippy Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Jef Roosens 2023-05-14 23:38:30 +02:00
parent 3fbec90bb4
commit a74cf76b2b
4 changed files with 24 additions and 10 deletions

View file

@ -4,7 +4,7 @@ use chrono::{Duration, NaiveDate};
use uuid::{uuid, Uuid};
const STERRE_BIB_ID: Uuid = uuid!("4737e57a-ee05-4f7b-901a-7bb541eeb297");
const TIME_FORMAT: &'static str = "%H:%M";
const TIME_FORMAT: &str = "%H:%M";
/// Show this help menu
#[poise::command(prefix_command, track_edits, slash_command)]
@ -90,7 +90,7 @@ pub async fn available(ctx: Context<'_>, date: NaiveDate) -> Result<(), Error> {
let mut fields: Vec<(String, String, bool)> = Default::default();
for resource in &resources {
if resource.hours.len() == 0 {
if resource.hours.is_empty() {
fields.push((
resource.resource_name.clone(),
"Nothing available.".to_string(),
@ -158,5 +158,5 @@ pub async fn available(ctx: Context<'_>, date: NaiveDate) -> Result<(), Error> {
// ctx: Context<'_>,
// date: NaiveDate,
// ) -> Result<(), Error> {
// }