style: run fmter

This commit is contained in:
Compositr 2024-12-31 00:04:12 +08:00
parent df62daaea5
commit 980be5730c
Signed by: compositr
GPG key ID: 91E3DE20129A0B4A
3 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
/// Print a message to stderr and exit with status code 1 to avoid using /// Print a message to stderr and exit with status code 1 to avoid using
/// .expect() or .unwrap() /// .expect() or .unwrap()
/// ///
/// Arguments are passed to `format!` to format the message /// Arguments are passed to `format!` to format the message

View file

@ -66,8 +66,7 @@ fn main() {
let month_name = time.datetime.format("%B").to_string(); let month_name = time.datetime.format("%B").to_string();
let day_ordinal = util::ordinal(time.datetime.day()); let day_ordinal = util::ordinal(time.datetime.day());
let inventory = let inventory = Inventory::take(&config).unwrap_or_fatal("Failed to take inventory");
Inventory::take(&config).unwrap_or_fatal("Failed to take inventory");
println!("*** Inventory ***"); println!("*** Inventory ***");
println!( println!(

View file

@ -1,4 +1,4 @@
use diaryrs::{macros::UnwrapOrFatalAble}; use diaryrs::macros::UnwrapOrFatalAble;
use regex::Regex; use regex::Regex;
use crate::args::Config; use crate::args::Config;