diff --git a/Cargo.toml b/Cargo.toml index 9a4de6a..cae0d90 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,15 @@ resolver = "2" members = [ "leptos_webpage", ] + +[profile] + +[profile.wasm-dev] +inherits = "dev" +opt-level = 1 + +[profile.server-dev] +inherits = "dev" + +[profile.android-dev] +inherits = "dev" diff --git a/leptos_webpage/src/bin/cli.rs b/leptos_webpage/src/bin/cli.rs index 8babed3..8a3101d 100644 --- a/leptos_webpage/src/bin/cli.rs +++ b/leptos_webpage/src/bin/cli.rs @@ -5,17 +5,25 @@ use std::io::stdin; #[derive(Debug, Parser)] struct Args { - sessions: Vec + sessions: Vec, } fn main() { let args = Args::parse(); - let mut iter = DayIter::default().filter(|day| args.sessions.iter().any(|nth_weekday| nth_weekday.matches(day))); + let mut iter = DayIter::default().filter(|day| { + args + .sessions + .iter() + .any(|nth_weekday| nth_weekday.matches(day)) + }); loop { - iter.by_ref().take(3).for_each(|day| println!("{}", localize_day(&day))); + iter + .by_ref() + .take(3) + .for_each(|day| println!("{}", localize_day(&day))); println!("Press enter for more..."); stdin().read_line(&mut String::new()).unwrap(); } -} \ No newline at end of file +} diff --git a/leptos_webpage/src/main.rs b/leptos_webpage/src/main.rs index aeaae4b..08ee84d 100644 --- a/leptos_webpage/src/main.rs +++ b/leptos_webpage/src/main.rs @@ -6,4 +6,3 @@ fn main() { mount_to_body(webpage::App); } - diff --git a/leptos_webpage/rustfmt.toml b/rustfmt.toml similarity index 100% rename from leptos_webpage/rustfmt.toml rename to rustfmt.toml