forked from Anri/cal8tor
use if let construction
This commit is contained in:
parent
4015b3777f
commit
bbdc50b23a
1 changed files with 1 additions and 3 deletions
|
@ -79,10 +79,8 @@ async fn main() {
|
|||
println!("Récupération des informations par rapport à l'année...");
|
||||
let info = info::info(args.semester, args.year, &date, args.week_skip);
|
||||
|
||||
if args.export.is_some() {
|
||||
if let Some(mut filename) = args.export {
|
||||
// Export the calendar
|
||||
let mut filename = args.export.unwrap();
|
||||
|
||||
let builded_timetable = timetable::build(&timetable, &info);
|
||||
ics::export(builded_timetable, &mut filename, !args.no_tz);
|
||||
|
||||
|
|
Loading…
Reference in a new issue