From 37db9bf662cbd4207905bfc4e675e33489ca3c57 Mon Sep 17 00:00:00 2001 From: Daan Boerlage Date: Wed, 24 Jan 2024 13:01:15 +0800 Subject: [PATCH] Make cargo fmt happy --- src/main.rs | 6 +++++- src/utils/fortunes_reader.rs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 80f4710..879f824 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,11 @@ fn main() { // reveal the cookie if options.show_cookie { - let cookie_file = Path::new(&cookie.name).file_name().unwrap().to_str().unwrap(); + let cookie_file = Path::new(&cookie.name) + .file_name() + .unwrap() + .to_str() + .unwrap(); println!("({})\n%", cookie_file); } diff --git a/src/utils/fortunes_reader.rs b/src/utils/fortunes_reader.rs index aff5474..48e2013 100644 --- a/src/utils/fortunes_reader.rs +++ b/src/utils/fortunes_reader.rs @@ -68,7 +68,11 @@ fn get_paths() -> Vec { #[cfg(unix)] fn get_paths() -> Vec { - own_vec(vec!["./fortunes", "/usr/share/fortune", "/usr/share/games/fortunes"]) + own_vec(vec![ + "./fortunes", + "/usr/share/fortune", + "/usr/share/games/fortunes", + ]) } pub struct Cookie {