mirror of
https://github.com/Xevion/banner.git
synced 2025-12-08 02:06:32 -06:00
chore: rustfmt
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
//! Bot commands module.
|
//! Bot commands module.
|
||||||
|
|
||||||
|
pub mod gcal;
|
||||||
|
pub mod ics;
|
||||||
pub mod search;
|
pub mod search;
|
||||||
pub mod terms;
|
pub mod terms;
|
||||||
pub mod time;
|
pub mod time;
|
||||||
pub mod ics;
|
|
||||||
pub mod gcal;
|
|
||||||
|
|
||||||
|
pub use gcal::gcal;
|
||||||
|
pub use ics::ics;
|
||||||
pub use search::search;
|
pub use search::search;
|
||||||
pub use terms::terms;
|
pub use terms::terms;
|
||||||
pub use time::time;
|
pub use time::time;
|
||||||
pub use ics::ics;
|
|
||||||
pub use gcal::gcal;
|
|
||||||
|
|||||||
@@ -92,9 +92,7 @@ fn parse_course_code(input: &str) -> Result<(i32, i32), Error> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if low > high {
|
if low > high {
|
||||||
return Err(anyhow!(
|
return Err(anyhow!("Invalid range: low value greater than high value"));
|
||||||
"Invalid range: low value greater than high value"
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if low < 1000 || high > 9999 {
|
if low < 1000 || high > 9999 {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//! Time command implementation for course meeting times.
|
//! Time command implementation for course meeting times.
|
||||||
|
|
||||||
use crate::bot::{utils, Context, Error};
|
use crate::bot::{Context, Error, utils};
|
||||||
use tracing::info;
|
use tracing::info;
|
||||||
|
|
||||||
/// Get meeting times for a specific course
|
/// Get meeting times for a specific course
|
||||||
|
|||||||
Reference in New Issue
Block a user