From 855f8f45ae99ed264be978641f0f8566d26d2bf0 Mon Sep 17 00:00:00 2001 From: awwsomepotato <153149335+awwsomepotato@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:33:48 -0700 Subject: [PATCH] chore: rename lib.rs to query.rs --- src/main.rs | 11 ++++++++--- src/{lib.rs => query.rs} | 7 +++---- 2 files changed, 11 insertions(+), 7 deletions(-) rename src/{lib.rs => query.rs} (97%) diff --git a/src/main.rs b/src/main.rs index 1adc72e..f6f941d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,9 +8,14 @@ use std::env; use tba_openapi_rust::apis::configuration::{ApiKey, Configuration}; use tower_http::services::ServeFile; -use hensight::{ - get_event_predictions, get_event_rankings, get_pulse_data, get_slide, get_statbotics_data, - SlideData, +mod model; +mod query; + +use crate::{ + model::SlideData, + query::{ + get_event_predictions, get_event_rankings, get_pulse_data, get_slide, get_statbotics_data, + }, }; #[tokio::main] diff --git a/src/lib.rs b/src/query.rs similarity index 97% rename from src/lib.rs rename to src/query.rs index 87ec239..db8641a 100644 --- a/src/lib.rs +++ b/src/query.rs @@ -2,16 +2,15 @@ // SPDX-FileCopyrightText: 2024 Finnegan Dion-Kuhn use chrono::{Datelike, Local, TimeZone}; -use model::PulseData; use rand::{seq::SliceRandom, thread_rng}; use tba_openapi_rust::{ apis::{configuration::Configuration, event_api}, models::event_ranking_rankings_inner::EventRankingRankingsInner, }; -mod model; - -pub use model::{NexusEventStatus, NexusMatch, SlideData, StatboticsReturn, StatboticsTeamYear}; +pub use crate::model::{ + NexusEventStatus, NexusMatch, PulseData, SlideData, StatboticsReturn, StatboticsTeamYear, +}; pub fn get_slide<'a>( slides: &'a Vec Option<&'a str>>,