Reformat project
This commit is contained in:
parent
1d760a2415
commit
3c12e3ff29
@ -8,7 +8,8 @@ fn main() -> Result<(), String> {
|
||||
let out_dir = env::var_os("TRUNK_STAGING_DIR").unwrap_or("target/default_configs".into());
|
||||
fs::create_dir_all(&out_dir).map_err(|e| format!("failed to create target directory: {e}"))?;
|
||||
|
||||
create_default_config::<SessionConfig, _>("session_config", &out_dir).map_err(|e| format!("Failed to create session_config: {e}"))?;
|
||||
create_default_config::<SessionConfig, _>("session_config", &out_dir)
|
||||
.map_err(|e| format!("Failed to create session_config: {e}"))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,9 @@ use serde::{Deserialize, Serialize};
|
||||
use session_iter::day::Day;
|
||||
use session_iter::session::iter::{DatedSession, DatedSessionIter};
|
||||
use session_iter::session::rule::WeekdayOfMonth;
|
||||
use session_iter::session::{Alternation, Cancellation, Dated, ExtraSession, RegularSession, Session, WithNote};
|
||||
use session_iter::session::{
|
||||
Alternation, Cancellation, Dated, ExtraSession, RegularSession, Session, WithNote,
|
||||
};
|
||||
|
||||
#[component]
|
||||
pub fn App() -> impl IntoView {
|
||||
@ -188,7 +190,12 @@ impl Default for SessionConfig {
|
||||
.except(
|
||||
NEXT_SUN_SESSION,
|
||||
Alternation {
|
||||
new_day: Some(NEXT_SUN_SESSION.checked_sub_days(Days::new(1)).unwrap().into()),
|
||||
new_day: Some(
|
||||
NEXT_SUN_SESSION
|
||||
.checked_sub_days(Days::new(1))
|
||||
.unwrap()
|
||||
.into(),
|
||||
),
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
|
||||
@ -2,4 +2,3 @@ pub mod day;
|
||||
pub mod session;
|
||||
#[cfg(test)]
|
||||
mod test_util;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user