From 918431b7314fde72ae1ebd8840bb3c9cc9c18055 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 15 Aug 2022 14:52:57 +0200 Subject: [PATCH] fix typo --- src/main.rs | 3 +-- src/timetable.rs | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index a66dc42..2c40c9d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,8 @@ -mod timetable; mod info; +mod timetable; #[tokio::main] async fn main() { - let _timetable = timetable::timetable(3, 1, None).await; let _info = info::info().await; diff --git a/src/timetable.rs b/src/timetable.rs index 3a8563e..48574ec 100644 --- a/src/timetable.rs +++ b/src/timetable.rs @@ -1,9 +1,11 @@ -use scraper::{Selector, Html}; +use scraper::{Html, Selector}; mod models; pub async fn timetable(year: i8, semester: i8, letter: Option) -> Vec { - let document = get_webpage(year, semester, letter).await.expect("Can't reach timetable website."); + let document = get_webpage(year, semester, letter) + .await + .expect("Can't reach timetable website."); // Selectors let sel_table = Selector::parse("table").unwrap();