From 980be5730c9827bd5a4d98ceb22db3d268e5955d Mon Sep 17 00:00:00 2001 From: Compositr Date: Tue, 31 Dec 2024 00:04:12 +0800 Subject: [PATCH] style: run fmter --- src/macros.rs | 2 +- src/main.rs | 3 +-- src/mgmt.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 509c57c..b94a9f0 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -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() /// /// Arguments are passed to `format!` to format the message diff --git a/src/main.rs b/src/main.rs index 9318451..5d4fd83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,8 +66,7 @@ fn main() { let month_name = time.datetime.format("%B").to_string(); let day_ordinal = util::ordinal(time.datetime.day()); - let inventory = - Inventory::take(&config).unwrap_or_fatal("Failed to take inventory"); + let inventory = Inventory::take(&config).unwrap_or_fatal("Failed to take inventory"); println!("*** Inventory ***"); println!( diff --git a/src/mgmt.rs b/src/mgmt.rs index 03c74ff..dfa4e70 100644 --- a/src/mgmt.rs +++ b/src/mgmt.rs @@ -1,4 +1,4 @@ -use diaryrs::{macros::UnwrapOrFatalAble}; +use diaryrs::macros::UnwrapOrFatalAble; use regex::Regex; use crate::args::Config;