diff options
author | Ellie Huxtable <ellie@elliehuxtable.com> | 2023-08-30 22:37:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-30 22:37:15 +0100 |
commit | dead8f364528bd2ea2ac6a85164cdcd66508aa4d (patch) | |
tree | 5ecfd951c64159c82e1b43e47733c1215ad8dcf7 /atuin-common | |
parent | 340b9d8a2b68dc85a38186f17cef4b089ae98cf4 (diff) |
Run formatting (#1202)
Diffstat (limited to 'atuin-common')
-rw-r--r-- | atuin-common/src/utils.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/atuin-common/src/utils.rs b/atuin-common/src/utils.rs index d2db3acf..ed98e275 100644 --- a/atuin-common/src/utils.rs +++ b/atuin-common/src/utils.rs @@ -112,8 +112,12 @@ pub fn get_current_dir() -> String { } pub fn get_days_from_month(year: i32, month: u32) -> i64 { - let Some(start) = NaiveDate::from_ymd_opt(year, month, 1) else { return 30 }; - let Some(end) = start.checked_add_months(Months::new(1)) else { return 30 }; + let Some(start) = NaiveDate::from_ymd_opt(year, month, 1) else { + return 30; + }; + let Some(end) = start.checked_add_months(Months::new(1)) else { + return 30; + }; end.signed_duration_since(start).num_days() } |